forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (38 loc) · 912 Bytes
/
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
version: '3'
services:
db:
image: library/postgres:12.2
environment:
POSTGRES_USER: "oioioi"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "oioioi"
volumes:
- postgress-data:/var/lib/postgresql/data
stop_grace_period: 1m
web:
image: sio2project/oioioi:$OIOIOI_VERSION
command: ["/sio2/oioioi/oioioi_init.sh"]
ports:
- "8000:8000"
volumes:
- $OIOIOI_CONFIGDIR/basic_settings.py:/sio2/deployment/basic_settings.py
stop_grace_period: 3m
depends_on:
- db
- broker
worker:
image: sio2project/oioioi:$OIOIOI_VERSION
command: ["/sio2/oioioi/worker_init.sh"]
stop_grace_period: 1m
cap_add:
- ALL
depends_on:
- db
broker:
image: library/rabbitmq:3.8
environment:
RABBITMQ_DEFAULT_USER: oioioi
RABBITMQ_DEFAULT_PASS: oioioi
stop_grace_period: 1m
volumes:
postgress-data: