first commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
finger-web:
|
||||
build: .
|
||||
container_name: finger-web-app
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- FLASK_DEBUG=False
|
||||
- SECRET_KEY=your-production-secret-key-here
|
||||
volumes:
|
||||
# Mount logs directory for persistence (optional)
|
||||
- ./logs:/app/logs
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
networks:
|
||||
- finger-web-network
|
||||
|
||||
# Optional: Add nginx reverse proxy for production
|
||||
# nginx:
|
||||
# image: nginx:alpine
|
||||
# container_name: finger-web-nginx
|
||||
# ports:
|
||||
# - "80:80"
|
||||
# - "443:443"
|
||||
# volumes:
|
||||
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
# - ./ssl:/etc/nginx/ssl:ro
|
||||
# depends_on:
|
||||
# - finger-web
|
||||
# restart: unless-stopped
|
||||
# networks:
|
||||
# - finger-web-network
|
||||
|
||||
networks:
|
||||
finger-web-network:
|
||||
driver: bridge
|
||||
|
||||
# Optional: Add volumes for data persistence
|
||||
# volumes:
|
||||
# finger-web-data:
|
||||
# driver: local
|
||||
Reference in New Issue
Block a user