Add instructions for pushing to a private Docker repository in README.md
This commit is contained in:
parent
65791f4177
commit
3e75cc2abb
|
|
@ -89,3 +89,8 @@ docker run -d \
|
|||
## Environment Variables
|
||||
|
||||
- `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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue