Add instructions for pushing to a private Docker repository in README.md

This commit is contained in:
tigeren 2025-08-31 13:14:22 +00:00
parent 65791f4177
commit 3e75cc2abb
2 changed files with 33 additions and 0 deletions

View File

@ -89,3 +89,8 @@ docker run -d \
## Environment Variables ## Environment Variables
- `TZ`: Timezone (default: Asia/Shanghai) - `TZ`: Timezone (default: Asia/Shanghai)
## Push to private repo
docker build -t 192.168.2.212:3000/tigeren/dom:latest .
docker push 192.168.2.212:3000/tigeren/dom:latest

28
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,28 @@
version: '3.8'
services:
dom:
image: 192.168.2.212:3000/tigeren/dom:latest
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