29 lines
655 B
YAML
29 lines
655 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
dom:
|
|
build: .
|
|
container_name: dom
|
|
restart: unless-stopped
|
|
volumes:
|
|
# Map the config directory for external modification
|
|
- ./config:/app/config:rw
|
|
# Map templates directory if needed
|
|
- ./templates:/app/templates:rw
|
|
environment:
|
|
# Set timezone for the container
|
|
- TZ=Asia/Shanghai
|
|
networks:
|
|
- dom-network
|
|
# Health check to ensure the service is running
|
|
healthcheck:
|
|
test: ["CMD", "python3", "-c", "import sys; sys.exit(0)"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
dom-network:
|
|
driver: bridge
|