Files
digifi-flaskA001/docker.compose.yaml
T
2025-03-21 08:41:00 +01:00

38 lines
846 B
YAML

version: '3.8'
services:
api:
build: .
ports:
- "5000:5000"
environment:
- DEBUG=False
- PORT=5000
- API_USERNAME=admin
- API_PASSWORD=password
- SIMBRELLA_APP_ID=your_app_id
- SIMBRELLA_API_KEY=your_api_key
- LOG_LEVEL=INFO
volumes:
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/v1/api/salary/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Add a database service if needed
# db:
# image: postgres:14
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=simbrella
# volumes:
# - postgres_data:/var/lib/postgresql/data
# restart: unless-stopped
# volumes:
# postgres_data: