Align Caddy compose with host-network production
This commit is contained in:
parent
09caf2cf90
commit
8b4e0f49f0
1 changed files with 5 additions and 29 deletions
34
compose.yaml
34
compose.yaml
|
|
@ -1,34 +1,10 @@
|
||||||
networks:
|
|
||||||
proxy_network:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:latest
|
image: caddy:latest
|
||||||
container_name: caddy
|
container_name: caddy
|
||||||
restart: always
|
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
networks:
|
|
||||||
- proxy_network
|
|
||||||
expose:
|
|
||||||
- 2019
|
|
||||||
ports:
|
|
||||||
- 80:80
|
|
||||||
- 443:443/tcp
|
|
||||||
- 8448:8448
|
|
||||||
- 10.200.200.254:2019:2019
|
|
||||||
volumes:
|
|
||||||
- /app-config/caddy/data:/data
|
|
||||||
- /app-config/caddy/Caddyfile:/etc/caddy/Caddyfile
|
|
||||||
- /app-config/caddy/logs:/var/log/caddy
|
|
||||||
tarpit:
|
|
||||||
image: golang:1.22-alpine
|
|
||||||
container_name: tarpit
|
|
||||||
working_dir: /app
|
|
||||||
volumes:
|
|
||||||
- /app-config/tarpit:/app
|
|
||||||
command: sh -c "go build -o /tarpit tarpit.go && /tarpit"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
network_mode: host
|
||||||
- proxy_network
|
volumes:
|
||||||
|
- /app-config/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
|
- /app-config/caddy/data:/data
|
||||||
|
- /app-config/caddy/logs:/var/log/caddy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue