-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
45 lines (45 loc) · 1.08 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
version: '3'
services:
api:
image: penguinjudge/backend
build: backend/
ports:
- 5000:5000
- 8000:5000
volumes:
- ./.docker-compose:/mnt:ro
command: /bin/sh -c "python /mnt/prepare.py run_migration && penguin_judge api -c /mnt/config.ini --host 0.0.0.0 --port 5000"
depends_on:
- mq
- db
worker:
image: penguinjudge/backend
build: backend/
volumes:
- ./.docker-compose:/mnt:ro
- /var/run/docker.sock:/var/run/docker.sock
command: /bin/sh -c "python /mnt/prepare.py wait_migration && penguin_judge worker -c /mnt/config.ini"
depends_on:
- mq
- db
- puller
user: root
gui:
image: penguinjudge/frontend
build: frontend
depends_on:
- api
ports:
- 8080:80
mq:
image: rabbitmq:alpine
db:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: password
puller:
image: docker
volumes:
- ./container:/mnt:ro
- /var/run/docker.sock:/var/run/docker.sock
command: /bin/sh -c "/mnt/pull.sh && while true; do sleep 86400; done"