first commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
zynktime:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: zynktime
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- KLEER_API_KEY=${KLEER_API_KEY}
|
||||
- KLEER_USERNAME=${KLEER_USERNAME:-Christopher Juhlin}
|
||||
- KLEER_COMPANY_ID=${KLEER_COMPANY_ID:-1336}
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
# Mount for development (comment out for production)
|
||||
- ./static:/app/static:ro
|
||||
# Volume for logs (optional)
|
||||
- ./logs:/app/logs
|
||||
networks:
|
||||
- zynktime-network
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health')"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
labels:
|
||||
- "com.zynktime.description=ZynkTime - Time Reporting Application"
|
||||
- "com.zynktime.version=1.0.0"
|
||||
|
||||
networks:
|
||||
zynktime-network:
|
||||
driver: bridge
|
||||
name: zynktime-network
|
||||
|
||||
volumes:
|
||||
logs:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user