34 lines
641 B
YAML
34 lines
641 B
YAML
# 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
|