forked from canvas-gamification/canvas-gamification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
53 lines (46 loc) · 973 Bytes
/
docker-compose.test.yml
File metadata and controls
53 lines (46 loc) · 973 Bytes
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
version: '3'
services:
sut:
build: .
image: gamification:latest
env_file:
- env/test.env
- env/db.env
depends_on:
- db
- judge0-server
- judge0-workers
command: ["./run_tests.sh"]
db:
image: postgres:9.6
env_file: env/db.env
privileged: true
restart: always
judge0-server:
image: judge0/api:1.9.0-extra
privileged: true
depends_on:
- judge0-db
- judge0-redis
restart: always
judge0-workers:
image: judge0/api:1.9.0-extra
command: ["./scripts/workers"]
privileged: true
depends_on:
- judge0-db
- judge0-redis
restart: always
judge0-db:
image: postgres:9.6
env_file: env/judge0.env
privileged: true
restart: always
judge0-redis:
image: redis:4.0
command: [
"bash", "-c",
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
]
env_file: env/judge0.env
restart: always