fix broken docker-compose file (#1046)

This commit is contained in:
Zaber authored and GitHub committed 2025-08-27 16:47:54 +01:00
1 parent c5578531fc
commit f18efc6bbb
3 files changed
+12 -5

No files matched your search

+10 -3
View File
@@ -2,18 +2,25 @@ services:
# Warning: mongodb here is not password-protected.
# DO NOT EXPOSE THIS SERVICE TO THE PUBLIC.
oj-mongo:
image: mongo
image: mongo:7-jammy
container_name: oj-mongo
restart: always
volumes:
- ./data/mongo:/data/db
healthcheck:
test: mongosh --eval "db.adminCommand('ping')"
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
oj-backend:
build: ./backend
container_name: oj-backend
restart: always
depends_on:
- oj-mongo
oj-mongo:
condition: service_healthy
restart: true
volumes:
- ./data/file:/data/file
- ./data/backend:/root/.hydro