- Remove 'version: 3.8' as it's no longer needed in modern Docker Compose - Eliminates warning: 'the attribute version is obsolete, it will be ignored' - Follows current Docker Compose best practices
18 lines
545 B
YAML
18 lines
545 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8100:5000"
|
|
environment:
|
|
- FLASK_CONFIG=production
|
|
- DATABASE_URL=sqlite:////data/moto_adventure.db
|
|
- SECRET_KEY=ana_are_mere_si-si-pere_cat-cuprinde_in_cos
|
|
working_dir: /opt/moto_site
|
|
volumes:
|
|
- ./data:/data # Database persistence
|
|
- ./uploads:/opt/moto_site/uploads # File uploads persistence
|
|
- ./app/static/media:/opt/moto_site/app/static/media # Media files persistence
|
|
restart: unless-stopped
|