From 9b165a7bec668ccf62e405fc9077e4b409f2a0d2 Mon Sep 17 00:00:00 2001 From: Zhi Date: Fri, 13 Mar 2026 19:03:10 +0000 Subject: [PATCH] use tmpfs for non-persistent storage --- docker-compose-frontend.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/docker-compose-frontend.yml b/docker-compose-frontend.yml index 7bbad42..23e6a44 100644 --- a/docker-compose-frontend.yml +++ b/docker-compose-frontend.yml @@ -2,7 +2,7 @@ services: mysql: image: mysql:8.0 container_name: harborforge-test-mysql - restart: unless-stopped + restart: "no" environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-harborforge_root} MYSQL_DATABASE: ${MYSQL_DATABASE:-harborforge} @@ -28,16 +28,14 @@ services: image: harborforge-test-wizard:dev container_name: harborforge-test-wizard user: 0:0 - restart: unless-stopped - volumes: - - wizard_config:/config + restart: "no" + tmpfs: + - /config environment: CONFIG_DIR: /config LISTEN_ADDR: "0.0.0.0:8080" MAX_BACKUPS: "5" CORS_ORIGINS: http://frontend:3000 - ports: - - "${WIZARD_PORT:-18080}:8080" deploy: resources: limits: @@ -52,15 +50,15 @@ services: dockerfile: Dockerfile image: harborforge-test-backend:dev container_name: harborforge-test-backend - restart: unless-stopped + restart: "no" environment: CONFIG_DIR: /config CONFIG_FILE: harborforge.json SECRET_KEY: ${SECRET_KEY:-change_me_in_production} LOG_LEVEL: ${LOG_LEVEL:-INFO} DATABASE_URL: mysql+pymysql://harborforge:harborforge_pass@mysql:3306/harborforge - volumes: - - wizard_config:/config:ro + tmpfs: + - /config depends_on: mysql: condition: service_healthy @@ -86,7 +84,7 @@ services: VITE_WIZARD_PORT: 8080 image: harborforge-test-frontend:dev container_name: harborforge-test-frontend - restart: unless-stopped + restart: "no" environment: VITE_API_BASE_URL: http://backend:8000 depends_on: @@ -124,10 +122,6 @@ services: networks: - test-network -volumes: - wizard_config: - driver: local - networks: test-network: driver: bridge