mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20
|
FROM node:22
|
||||||
|
|
||||||
COPY ./entrypoint.sh /root/entrypoint.sh
|
COPY ./entrypoint.sh /root/entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
@@ -2,18 +2,25 @@ services:
|
|||||||
# Warning: mongodb here is not password-protected.
|
# Warning: mongodb here is not password-protected.
|
||||||
# DO NOT EXPOSE THIS SERVICE TO THE PUBLIC.
|
# DO NOT EXPOSE THIS SERVICE TO THE PUBLIC.
|
||||||
oj-mongo:
|
oj-mongo:
|
||||||
image: mongo
|
image: mongo:7-jammy
|
||||||
container_name: oj-mongo
|
container_name: oj-mongo
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mongo:/data/db
|
- ./data/mongo:/data/db
|
||||||
|
healthcheck:
|
||||||
|
test: mongosh --eval "db.adminCommand('ping')"
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s
|
||||||
oj-backend:
|
oj-backend:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
container_name: oj-backend
|
container_name: oj-backend
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- oj-mongo
|
oj-mongo:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/file:/data/file
|
- ./data/file:/data/file
|
||||||
- ./data/backend:/root/.hydro
|
- ./data/backend:/root/.hydro
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20
|
FROM node:22
|
||||||
|
|
||||||
COPY ./entrypoint.sh /root/entrypoint.sh
|
COPY ./entrypoint.sh /root/entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user