mirror of
https://github.com/Glimesh/broadcast-box.git
synced 2026-07-04 15:07:53 +00:00
b12ff7e720
The caddy container specifies "host" networking so the ports aren't necessary. Older versions of docker/docker-compose may have just ignored the the ports when using "host" networking, but I was unable to get the containers to start using docker-compose 1.29.2 / docker 20.10.24+dfsg1, build 297e128 as it threw an error around having specified ports AND "host" networking.
33 lines
723 B
YAML
33 lines
723 B
YAML
version: "3"
|
|
|
|
services:
|
|
broadcast-box:
|
|
environment:
|
|
- INCLUDE_PUBLIC_IP_IN_NAT_1_TO_1_IP=yes
|
|
image: seaduboi/broadcast-box:latest
|
|
hostname: broadcast-box
|
|
container_name: broadcast-box
|
|
network_mode: "host"
|
|
privileged: true
|
|
|
|
caddy:
|
|
image: lucaslorentz/caddy-docker-proxy:ci-alpine
|
|
environment:
|
|
- CADDY_INGRESS_NETWORKS=caddy
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- caddy_data:/data
|
|
network_mode: "host"
|
|
labels:
|
|
caddy: ${URL}
|
|
caddy.reverse_proxy: "localhost:8080"
|
|
|
|
watchtower:
|
|
restart: always
|
|
image: containrrr/watchtower:latest
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
volumes:
|
|
caddy_data: {}
|