-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (53 loc) · 1.16 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
version: '2'
services:
db:
image: postgres:9.6
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: judge
POSTGRES_USER: judge
POSTGRES_PASSWORD: judge
celery_broker:
image: rabbitmq:3.7
restart: always
volumes:
- celery_broker-data:/var/lib/rabbitmq
back_worker:
build:
context: back
restart: always
volumes:
- back-uploads:/app/uploads
command: ['/venv/bin/celery', '-A', 'judge_api', 'worker', '-l', 'info']
environment:
DATABASE_URL: postgres://judge:judge@db/judge
CELERY_BROKER_URL: amqp://celery_broker
back:
build:
context: back
restart: always
volumes:
- back-uploads:/app/uploads
environment:
DEBUG: 0
DATABASE_URL: postgres://judge:judge@db/judge
CELERY_BROKER_URL: amqp://celery_broker
DJANGO_MANAGEPY_MIGRATE: 1
DJANGO_MANAGEPY_COLLECTSTATIC: 1
depends_on:
- db
- celery_broker
front:
build:
context: front
restart: always
ports:
- "8000:80"
depends_on:
- back
volumes:
db-data:
celery_broker-data:
back-uploads: