-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (79 loc) · 1.84 KB
/
Copy pathdocker-compose.yml
File metadata and controls
89 lines (79 loc) · 1.84 KB
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
version: "3.7"
services:
aasp_web:
build:
context: .
dockerfile: ./config/aasp/Dockerfile
entrypoint: ./config/aasp/aasp_web_script.sh
volumes:
- .:/app
restart: unless-stopped
depends_on:
- aasp_db
- celery_worker
aasp_db:
image: postgres:latest
env_file: ./config/.env
restart: unless-stopped
volumes:
- aasp_postgres_data:/var/lib/postgresql/data/
aasp_nginx:
image: nginx:stable-alpine
restart: unless-stopped
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- .:/app
ports:
- 80:80
rabbitmq:
image: rabbitmq:3-management
restart: unless-stopped
celery_worker:
build:
context: .
dockerfile: ./config/aasp/Dockerfile
entrypoint: celery -A aasp worker --loglevel=INFO
volumes:
- .:/app
restart: unless-stopped
depends_on:
- rabbitmq
judge0_server:
image: judge0/judge0:latest
volumes:
- ./config/judge0/judge0.conf:/judge0.conf:ro
privileged: true
restart: unless-stopped
depends_on:
- judge0_db
- judge0_redis
judge0_worker:
image: judge0/judge0:latest
command: [ "./scripts/workers" ]
volumes:
- ./config/judge0/judge0.conf:/judge0.conf:ro
privileged: true
restart: unless-stopped
depends_on:
- judge0_db
- judge0_redis
judge0_db:
image: postgres:13.0
env_file: ./config/judge0/judge0.conf
volumes:
- postgres-data:/var/lib/postgresql/data/
restart: unless-stopped
judge0_redis:
image: redis:6.0
command: [
"bash", "-c",
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
]
env_file: ./config/judge0/judge0.conf
volumes:
- redis-data:/data
restart: unless-stopped
volumes:
aasp_postgres_data:
postgres-data:
redis-data: