use named volume for config sharing, use tmpfs for mysql

This commit is contained in:
Zhi
2026-03-13 19:20:01 +00:00
parent a74d422b60
commit d503dc178c

View File

@@ -26,8 +26,8 @@ services:
container_name: harborforge-test-wizard container_name: harborforge-test-wizard
user: 0:0 user: 0:0
restart: "no" restart: "no"
tmpfs: volumes:
- /config - wizard_config:/config
environment: environment:
CONFIG_DIR: /config CONFIG_DIR: /config
LISTEN_ADDR: "0.0.0.0:8080" LISTEN_ADDR: "0.0.0.0:8080"
@@ -45,8 +45,8 @@ services:
image: harborforge-test-backend:dev image: harborforge-test-backend:dev
container_name: harborforge-test-backend container_name: harborforge-test-backend
restart: "no" restart: "no"
tmpfs: volumes:
- /config - wizard_config:/config:ro
environment: environment:
CONFIG_DIR: /config CONFIG_DIR: /config
CONFIG_FILE: harborforge.json CONFIG_FILE: harborforge.json
@@ -86,6 +86,7 @@ services:
environment: environment:
BASE_URL: http://frontend:3000 BASE_URL: http://frontend:3000
WEB_SERVER_URL: http://frontend:3000 WEB_SERVER_URL: http://frontend:3000
WIZARD_URL: http://wizard:8080
CHROME_DEBUGGING_PORT: 9222 CHROME_DEBUGGING_PORT: 9222
depends_on: depends_on:
frontend: frontend:
@@ -95,6 +96,9 @@ services:
networks: networks:
- test-network - test-network
volumes:
wizard_config:
networks: networks:
test-network: test-network:
driver: bridge driver: bridge