Skip to content

Commit 9f71f4f

Browse files
Simplfy development Docker Compose and upgrade some dep images.
1 parent 51c50e5 commit 9f71f4f

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

docker-compose.dev.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
version: "2"
22
services:
3-
nginx:
4-
image: judge0/nginxproxy-nginx-proxy:latest-2021-04-26
5-
environment:
6-
DEFAULT_HOST: judge0.local
7-
volumes:
8-
- /var/run/docker.sock:/tmp/docker.sock:ro
9-
ports:
10-
- "80:80"
11-
restart: always
12-
133
judge0:
144
image: judge0/judge0:latest-dev
15-
environment:
16-
VIRTUAL_HOST: judge0.local
5+
build:
6+
context: .
7+
target: development
178
volumes:
189
- .:/api
1910
ports:
@@ -22,15 +13,15 @@ services:
2213
privileged: true
2314

2415
db:
25-
image: postgres:13.0
16+
image: postgres:14.3
2617
env_file: judge0.conf
2718
volumes:
2819
- postgres-data:/var/lib/postgresql/data/
2920
restart: always
3021

3122
# Not actually currently used. Just for testing purposes in development.
3223
pgbouncer:
33-
image: pgbouncer/pgbouncer:1.14.0
24+
image: pgbouncer/pgbouncer:1.15.0
3425
environment: # DATABASES_* are the same as from judge0.conf
3526
DATABASES_HOST: db
3627
DATABASES_PORT: 5432
@@ -41,7 +32,7 @@ services:
4132
restart: always
4233

4334
redis:
44-
image: redis:6.0
35+
image: redis:6.2.7
4536
command: [
4637
"bash", "-c",
4738
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'

0 commit comments

Comments
 (0)