-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1022 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
39
40
41
42
43
44
45
46
47
48
49
version: "2.3"
services:
db:
image: postgres:14.1-alpine
restart: always
ports:
- "127.0.0.1:5600:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- db:/var/lib/postgresql/data
- ./internal/njudge/db/migrations/1_init.up.sql:/docker-entrypoint-initdb.d/create_tables.sql
web:
image: njudge-web
ports:
- 5555:5555
env_file:
- web.env
volumes:
- type: bind
source: /home/aron/Projects/njudge/njudge_problems_git
target: /njudge_problems
networks:
- default
judge:
image: njudge-judge
privileged: true
env_file:
- judge.env
volumes:
- type: bind
source: /home/aron/Projects/njudge/njudge_problems_git
target: /njudge_problems
networks:
- default
glue:
image: njudge-glue
env_file:
- glue.env
networks:
- default
volumes:
db:
driver: local
problems:
driver: local
networks:
default: