-
Notifications
You must be signed in to change notification settings - Fork 82
/
docker-compose-dev.yml
52 lines (52 loc) · 1.17 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
services:
db:
image: library/postgres:12.2
environment:
POSTGRES_USER: "oioioi"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "oioioi"
volumes:
- postgress-data-dev:/var/lib/postgresql/data
stop_grace_period: 1m
web:
image: sio2project/oioioi-dev
command: ["/sio2/oioioi/oioioi_init.sh", "--dev"]
build:
context: .
dockerfile: Dockerfile
args:
- "oioioi_uid=${OIOIOI_UID}"
extra_hosts:
- "web:127.0.0.1"
ports:
# web server
- "8000:8000"
# notifications server
# - "7887:7887"
volumes:
- .:/sio2/oioioi
- filetracker-data-dev:/sio2/deployment/media
# - ./deployment:/sio2/deployment
stop_grace_period: 3m
depends_on:
- db
- broker
worker:
image: sio2project/oioioi-dev
command: ["/sio2/oioioi/worker_init.sh"]
volumes:
- .:/sio2/oioioi
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-dev:
filetracker-data-dev: