-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathcompose.staging.yaml
More file actions
88 lines (82 loc) · 2.41 KB
/
Copy pathcompose.staging.yaml
File metadata and controls
88 lines (82 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
##
## Staging server config (wip)
## You probably want to run:
## export COMPOSE_FILE="compose.yaml:compose.staging.yaml"
## docker compose up -d
##
services:
web:
build:
context: .
dockerfile: docker/Dockerfile.oldev
args:
- PIP_INDEX_URL=${PIP_INDEX_URL:-}
restart: unless-stopped
hostname: "$HOSTNAME"
environment:
- GUNICORN_OPTS= --workers 4 --timeout 180
- OL_DEPLOYMENT_NAME=testing
- OL_CONFIG=/olsystem/etc/openlibrary.yml
- PIP_INDEX_URL=${PIP_INDEX_URL:-}
env_file:
- ./.env.local
volumes:
- ../olsystem:/olsystem
- ../olsystem/etc/ia.ini:/home/openlibrary/.config/ia.ini
# Persistent volume mount for installed git submodules
- ol-vendor:/openlibrary/vendor
# Persistent volume mount for generated css and js
- ol-build:/openlibrary/static/build
# Persistent volume mount for node_modules
- ol-nodemodules:/openlibrary/node_modules
# The above volume mounts are required so that the local dev bind mount below
# does not clobber the data generated inside the image / container
- .:/openlibrary
fast_web:
build:
context: .
dockerfile: docker/Dockerfile.oldev
args:
- PIP_INDEX_URL=${PIP_INDEX_URL:-}
restart: unless-stopped
hostname: "$HOSTNAME"
ports:
- ${FAST_WEB_PORT:-8080}:8080
environment:
- GUNICORN_OPTS= --workers 2 --timeout 180 --max-requests 500
- OL_DEPLOYMENT_NAME=testing
- OL_CONFIG=/olsystem/etc/openlibrary.yml
- PIP_INDEX_URL=${PIP_INDEX_URL:-}
env_file:
- ./.env.local
volumes:
- ../olsystem:/olsystem
# Persistent volume mount for generated css and js
- ol-build:/openlibrary/static/build
- .:/openlibrary
memcached:
restart: unless-stopped
node-exporter:
image: prom/node-exporter:v1.12.1
restart: unless-stopped
hostname: "$HOSTNAME"
# Needed to see the host's network/PIDs instead of the container's
network_mode: host
pid: host
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/host:ro
command:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host
- --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc|run)($$|/)
logging:
options:
max-size: "512m"
max-file: "4"
volumes:
ol-vendor:
ol-build:
ol-nodemodules: