updated docker compose
This commit is contained in:
@@ -14,7 +14,7 @@ services:
|
||||
ports:
|
||||
- "${DB_PORT:-3306}:3306"
|
||||
volumes:
|
||||
- mariadb_data:/var/lib/mysql
|
||||
- /srv/docker-test/mariadb:/var/lib/mysql
|
||||
- ./init-db.sql:/docker-entrypoint-initdb.d/01-init.sql
|
||||
networks:
|
||||
- recticel-network
|
||||
@@ -54,9 +54,12 @@ services:
|
||||
- "${APP_PORT:-8781}:8781"
|
||||
volumes:
|
||||
# Mount logs directory for persistence
|
||||
- ./logs:/srv/quality_recticel/logs
|
||||
# Mount instance directory for config persistence (optional)
|
||||
- ./instance:/app/instance
|
||||
- /srv/docker-test/logs:/srv/quality_recticel/logs
|
||||
# Mount instance directory for config persistence
|
||||
- /srv/docker-test/instance:/app/instance
|
||||
# Mount app code for easy updates (DISABLED - causes config issues)
|
||||
# Uncomment only for development, not production
|
||||
# - /srv/docker-test/app:/app
|
||||
networks:
|
||||
- recticel-network
|
||||
healthcheck:
|
||||
@@ -70,6 +73,5 @@ networks:
|
||||
recticel-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
mariadb_data:
|
||||
driver: local
|
||||
# Note: Using bind mounts to /srv/docker-test/ instead of named volumes
|
||||
# This allows easier access and management of persistent data
|
||||
|
||||
Reference in New Issue
Block a user