添加 docker-compose.yml

This commit is contained in:
XOF
2025-12-15 01:23:38 +08:00
parent 229030ded8
commit e772a85099

33
docker-compose.yml Normal file
View File

@@ -0,0 +1,33 @@
# docker-compose.yml
services:
siteproxy:
build: .
container_name: siteproxy
restart: unless-stopped
ports:
- "8080:8080"
env_file:
- .env
environment:
- TZ=UTC
networks:
- proxy-network
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
read_only: true
tmpfs:
- /tmp
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
proxy-network:
driver: bridge