-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
99 lines (91 loc) · 2.29 KB
/
docker-compose.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
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
89
90
91
92
93
94
95
96
97
98
99
version: '2.1'
services:
db:
image: postgres:15.7
ports:
- "5432"
environment:
- POSTGRES_PASSWORD=postgres # pragma: allowlist secret
redis:
image: redis:3.2.12@sha256:7b0a40301bc1567205e6461c5bf94c38e1e1ad0169709e49132cafc47f6b51f3
ports:
- "6379"
nginx:
image: nginx:1.27.0
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/web.conf
- ./:/src
ports:
- "8089:8089"
links:
- web
- watch
python:
build: .
command: /bin/true
volumes:
- .:/src
- django_media:/var/media
environment:
DEBUG: ${DEBUG:-True}
DEV_ENV: 'True'
NODE_ENV: 'development'
PORT: 8087
DATABASE_URL: ${DATABASE_URL:-postgres://postgres:postgres@db:5432/postgres} # pragma: allowlist secret
ODL_VIDEO_USE_WEBPACK_DEV_SERVER: 'True'
ODL_VIDEO_SECURE_SSL_REDIRECT: 'False'
ODL_VIDEO_DB_DISABLE_SSL: 'True'
CELERY_TASK_ALWAYS_EAGER: 'False'
CELERY_BROKER_URL: redis://redis:6379/4
CELERY_RESULT_BACKEND: redis://redis:6379/4
REDIS_URL: redis://redis:6379/4
DOCKER_HOST: ${DOCKER_HOST:-missing}
WEBPACK_DEV_SERVER_HOST: ${WEBPACK_DEV_SERVER_HOST:-localhost}
FIELD_ENCRYPTION_KEY: jtma0CL1QMRLaJgjXNlJh3mtPNcgok0G5ajRCMZ_XNI= # pragma: allowlist secret
env_file: .env
web:
image: odl_video_python
extends:
service: python
command: >
/bin/bash -c '
sleep 3 &&
python3 manage.py collectstatic --noinput &&
python3 manage.py migrate --noinput &&
uwsgi uwsgi.ini'
ports:
- "8087:8087"
links:
- db
- redis
watch:
build:
context: .
dockerfile: Dockerfile-node
working_dir: /src
command: >
/bin/bash -c './webpack_dev_server.sh --install'
ports:
- "8082:8082"
volumes:
- .:/src
- yarn-cache:/home/node/.cache/yarn
environment:
NODE_ENV: 'development'
DOCKER_HOST: ${DOCKER_HOST:-missing}
CONTAINER_NAME: 'watch'
env_file: .env
celery:
image: odl_video_python
extends:
service: python
command: >
/bin/bash -c '
sleep 3;
celery -A odl_video worker -B -l ${ODL_VIDEO_LOG_LEVEL:-INFO}'
links:
- db
- redis
volumes:
django_media: {}
yarn-cache: {}