-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.test.yml
63 lines (59 loc) · 1.43 KB
/
docker-compose.test.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
53
54
55
56
57
58
59
60
61
62
63
services:
server:
build:
context: .
dockerfile: docker/server/Dockerfile
args:
DEPENDENCIES_TAG: ${DEPENDENCIES_TAG}
restart: always
environment:
ENVIRONMENT: test
LOG_LEVEL: debug
DATABASE_URL: 'postgresql://tun-judge:tun-judge@db:5432/tun-judge?schema=public'
SESSION_SECRET: secret
REDIS_URL: 'redis://redis:6379'
ports:
- '3000:3000'
depends_on:
- db
- redis
judge:
build:
context: .
dockerfile: docker/judge/Dockerfile
args:
DEPENDENCIES_TAG: ${DEPENDENCIES_TAG}
restart: always
environment:
ENVIRONMENT: test
HOSTNAME: judgehost
TUN_JUDGE_URL: http://server:3000
TUN_JUDGE_USERNAME: judge-host
TUN_JUDGE_PASSWORD: judge-host
SYSTEM_STORAGE_DIRECTORY_PATH: /tmp/judge-files-storage
volumes:
- ./dist/judge-files-storage:/tmp/judge-files-storage
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- server
db:
image: postgres:13
restart: always
environment:
POSTGRES_DB: tun-judge
POSTGRES_USER: tun-judge
POSTGRES_PASSWORD: tun-judge
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: bitnami/redis:6.0
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis-data:/bitnami/redis/data
volumes:
db-data:
driver: local
redis-data:
driver: local