forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.staging.yml
40 lines (37 loc) · 1.19 KB
/
docker-compose.staging.yml
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
##
## Staging server config (wip)
## You probably want to run:
## export COMPOSE_FILE="docker-compose.yml:docker-compose.staging.yml"
## docker-compose up -d
##
version: "3.8"
services:
web:
build:
context: .
dockerfile: docker/Dockerfile.oldev
restart: unless-stopped
hostname: "$HOSTNAME"
environment:
- GUNICORN_OPTS= --workers 4 --timeout 180
- OL_CONFIG=/olsystem/etc/openlibrary.yml
- BEFORE_START=pip install -e /booklending_utils
volumes:
- ../olsystem:/olsystem
- ../booklending_utils:/booklending_utils
- ../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
memcached:
restart: unless-stopped
volumes:
ol-vendor:
ol-build:
ol-nodemodules: