forked from judge0/judge0
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
59 lines (54 loc) · 1.33 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
53
54
55
56
57
58
59
version: "2"
services:
judge0:
image: judge0/judge0:latest-dev
build:
context: .
target: development
volumes:
- .:/api
ports:
- "2358:2358"
- "3001:3001" # For ./scripts/dev/serve-docs
privileged: true
db:
image: postgres:14.3
env_file: judge0.conf
volumes:
- postgres-data:/var/lib/postgresql/data/
restart: always
# Not actually currently used. Just for testing purposes in development.
pgbouncer:
image: pgbouncer/pgbouncer:1.15.0
environment: # DATABASES_* are the same as from judge0.conf
DATABASES_HOST: db
DATABASES_PORT: 5432
DATABASES_DBNAME: judge0
DATABASES_USER: judge0
DATABASES_PASSWORD: YourPasswordHere1234
PGBOUNCER_LISTEN_PORT: 5432 # Set the same as Postgres
restart: always
redis:
image: redis:6.2.7
command: [
"bash", "-c",
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
]
env_file: judge0.conf
volumes:
- redis-data:/data
restart: always
resque:
image: ennexa/resque-web:latest
entrypoint: ""
command: [
"bash", "-c",
'resque-web -FL -r redis://:$$REDIS_PASSWORD@$$REDIS_HOST:$$REDIS_PORT'
]
env_file: judge0.conf
ports:
- "5678:5678"
restart: always
volumes:
postgres-data:
redis-data: