diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 1514e17..b2c9ad1 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -20,12 +20,15 @@ services: api: image: gitea.vrossem.net/bas/solelog:latest container_name: solelog-api - env_file: .env # BETTER_AUTH_SECRET, BETTER_AUTH_URL, CORS_ORIGINS + env_file: .env # BETTER_AUTH_SECRET, BETTER_AUTH_URL, CORS_ORIGINS environment: DATABASE_URL: file:/data/app.db PORT: '3000' volumes: - - solelog_db:/data + # Bind-mount the SQLite data dir onto attached storage on the host. + # Set SOLELOG_DATA_DIR in .env to an absolute path on your mounted disk + # (Docker creates it if missing). Falls back to ./data next to this file. + - ./data:/data networks: - solelog_network restart: unless-stopped @@ -47,6 +50,3 @@ services: networks: solelog_network: external: true - -volumes: - solelog_db: