mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
fix broken docker-compose file (#1046)
This commit is contained in:
1 parent
c5578531fc
commit
f18efc6bbb
3 files changed
+12
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user