2017-04-20 02:47:48 +03:00
|
|
|
version: "3"
|
2016-11-09 23:06:28 +03:00
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: app:build
|
|
|
|
env_file: .env
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
links:
|
|
|
|
- db
|
2018-12-13 23:22:45 +03:00
|
|
|
- redis
|
2020-06-15 23:28:20 +03:00
|
|
|
- kinto
|
2017-04-20 02:47:48 +03:00
|
|
|
volumes:
|
|
|
|
- ./app:/app
|
2019-10-31 22:21:47 +03:00
|
|
|
- /app/node_modules/
|
2020-06-03 22:12:43 +03:00
|
|
|
- /app/experimenter/static/core/node_modules/
|
|
|
|
- /app/experimenter/static/rapid/node_modules/
|
2019-11-15 18:20:23 +03:00
|
|
|
- assets_volume:/app/experimenter/static/assets/
|
|
|
|
- static_volume:/app/experimenter/served/
|
2020-06-15 23:28:20 +03:00
|
|
|
command: bash -c "/app/bin/wait-for-it.sh kinto:8888 -- python bin/setup_kinto.py;/app/bin/wait-for-it.sh db:5432 -- python /app/manage.py collectstatic --noinput;python /app/manage.py runserver 0:7001"
|
2017-04-20 02:47:48 +03:00
|
|
|
networks:
|
|
|
|
- private_nw
|
2019-10-31 20:45:29 +03:00
|
|
|
- public_nw
|
2018-12-13 23:22:45 +03:00
|
|
|
|
2020-06-02 21:36:10 +03:00
|
|
|
yarn-core:
|
2019-08-14 19:29:41 +03:00
|
|
|
image: app:build
|
|
|
|
env_file: .env
|
2019-11-15 18:20:23 +03:00
|
|
|
tty: true
|
2019-08-14 19:29:41 +03:00
|
|
|
volumes:
|
|
|
|
- ./app:/app
|
2019-10-31 22:21:47 +03:00
|
|
|
- /app/node_modules/
|
2020-06-02 21:36:10 +03:00
|
|
|
- /app/experimenter/static/core/node_modules/
|
2019-11-15 18:20:23 +03:00
|
|
|
- assets_volume:/app/experimenter/static/assets/
|
|
|
|
- static_volume:/app/experimenter/served/
|
2020-06-02 21:36:10 +03:00
|
|
|
command: bash -c "yarn workspace @experimenter/core watch"
|
|
|
|
|
|
|
|
yarn-rapid:
|
|
|
|
image: app:build
|
|
|
|
env_file: .env
|
|
|
|
tty: true
|
|
|
|
volumes:
|
|
|
|
- ./app:/app
|
|
|
|
- /app/node_modules/
|
|
|
|
- /app/experimenter/static/rapid/node_modules/
|
|
|
|
- assets_volume:/app/experimenter/static/assets/
|
|
|
|
- static_volume:/app/experimenter/served/
|
|
|
|
command: bash -c "yarn workspace @experimenter/rapid watch"
|
2019-08-14 19:29:41 +03:00
|
|
|
|
2018-12-13 23:22:45 +03:00
|
|
|
worker:
|
|
|
|
image: app:build
|
|
|
|
env_file: .env
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
- ./app:/app
|
|
|
|
command: bash -c "/app/bin/wait-for-it.sh db:5432 -- celery -A experimenter worker -l debug"
|
|
|
|
networks:
|
|
|
|
- private_nw
|
2017-05-19 21:36:55 +03:00
|
|
|
- public_nw
|
2019-09-11 17:28:22 +03:00
|
|
|
|
2019-06-07 02:38:15 +03:00
|
|
|
beat:
|
|
|
|
image: app:build
|
|
|
|
env_file: .env
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
- ./app:/app
|
2019-06-13 21:34:36 +03:00
|
|
|
command: bash -c "/app/bin/wait-for-it.sh db:5432 -- celery -A experimenter beat --pidfile /celerybeat.pid -s /celerybeat-schedule -l debug"
|
2019-06-07 02:38:15 +03:00
|
|
|
networks:
|
|
|
|
- private_nw
|
2016-11-09 23:06:28 +03:00
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
nginx:
|
|
|
|
build: ./nginx
|
2017-06-13 22:08:50 +03:00
|
|
|
env_file: .env
|
2017-04-20 02:47:48 +03:00
|
|
|
links:
|
|
|
|
- app
|
|
|
|
ports:
|
2017-08-24 20:14:37 +03:00
|
|
|
- "443:443"
|
2017-04-20 02:47:48 +03:00
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
- public_nw
|
2017-07-12 22:30:53 +03:00
|
|
|
volumes:
|
|
|
|
- static_volume:/app/experimenter/served/
|
2016-11-09 23:06:28 +03:00
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
db:
|
|
|
|
restart: always
|
2020-02-19 21:30:44 +03:00
|
|
|
image: postgres:9.6.17
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: postgres
|
2017-04-20 02:47:48 +03:00
|
|
|
volumes:
|
|
|
|
- db_volume:/var/lib/postgresql
|
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
|
2018-12-13 23:22:45 +03:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
|
2020-06-15 23:28:20 +03:00
|
|
|
kinto:
|
|
|
|
image: mozilla/kinto-dist
|
|
|
|
environment:
|
|
|
|
KINTO_INI: /etc/kinto.ini
|
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
- public_nw
|
|
|
|
ports:
|
|
|
|
- "8888:8888"
|
|
|
|
links:
|
|
|
|
- autograph
|
|
|
|
volumes:
|
|
|
|
- ./kinto/server.ini:/etc/kinto.ini
|
|
|
|
- kinto_volume:/attachments
|
|
|
|
|
|
|
|
autograph:
|
|
|
|
image: mozilla/autograph
|
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
volumes:
|
|
|
|
db_volume:
|
2017-07-12 22:30:53 +03:00
|
|
|
static_volume:
|
2019-11-15 18:20:23 +03:00
|
|
|
assets_volume:
|
2020-06-15 23:28:20 +03:00
|
|
|
kinto_volume:
|
2017-04-20 02:47:48 +03:00
|
|
|
|
|
|
|
networks:
|
|
|
|
private_nw:
|
|
|
|
internal: true
|
|
|
|
public_nw:
|