-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
139 lines (131 loc) · 3.56 KB
/
docker-compose.dev.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: "2"
services:
video-hub:
build: .
container_name: video-hub
restart: always
command: "/start_app_dev.sh plus"
stdin_open: true
tty: true
volumes:
- ./:/code
ports:
- 8010:80
depends_on:
- db
- redis
environment:
- DEBUG=True
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- CONN_MAX_AGE=0
- REDIS_HOST=${REDIS_HOST}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- AWS_MEDIA_CONVERT_ROLE=${AWS_MEDIA_CONVERT_ROLE}
- AWS_MEDIA_LIVE_ROLE=${AWS_MEDIA_LIVE_ROLE}
- APM_SERVICE_NAME=${APM_SERVICE_NAME}
- APM_SECRET_TOKEN=${APM_SECRET_TOKEN}
- APM_SERVER_URL=${APM_SERVER_URL}
- APM_DEBUG=True
- BASE_URL=${BASE_URL}
web:
container_name: web
image: node:10
working_dir: /code
command: bash -c "npm install && npm start"
volumes:
- ./web/:/code
depends_on:
- video-hub
ports:
- 3000:3000
celery:
build: .
container_name: celery
restart: always
command: "celery -A video_hub worker -l info -Q default"
stdin_open: true
tty: true
volumes:
- ./:/code
depends_on:
- db
- redis
environment:
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- TRACKING_API_URL=http://localhost:8020/api/v1/tracking/
- CONN_MAX_AGE=0
celery-transcode:
build: .
container_name: celery-transcode
restart: always
command: "celery -A video_hub worker -l info -Q transcode"
stdin_open: true
tty: true
volumes:
- ./:/code
depends_on:
- db
- redis
environment:
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- CONN_MAX_AGE=0
- REDIS_HOST=${REDIS_HOST}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
celery-beat:
build: .
container_name: celery-beat
restart: always
command: "celery -A video_hub beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
stdin_open: true
tty: true
volumes:
- ./:/code
depends_on:
- db
- redis
environment:
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- CONN_MAX_AGE=0
- REDIS_HOST=${REDIS_HOST}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
db:
image: postgres:10.6
container_name: db
restart: always
volumes:
- pgdata:/var/lib/postgresql/data/
- ./docker-commands/db_init:/docker-entrypoint-initdb.d/
environment:
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
redis:
image: redis
container_name: redis
restart: always
volumes:
- redis-data:/data
volumes:
pgdata:
redis-data: