use tmpfs for non-persistent storage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user