Remove the need for host binding

This commit is contained in:
Antoine Aflalo 2021-11-04 11:13:09 -04:00 committed by GitHub
parent a042f3ddc4
commit 5a6e445ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,6 @@ services:
- NET_ADMIN
- SYS_ADMIN
restart: always
network_mode: host
privileged: true
environment:
SERVER_HOST: "SERVER_PUBLIC_IP"
@ -37,8 +36,6 @@ services:
NODE_ID: "netmaker-server-1"
ports:
- "51821-51830:51821-51830/udp"
- "8081:8081"
- "50051:50051"
netmaker-ui:
container_name: netmaker-ui
depends_on:
@ -67,7 +64,14 @@ services:
image: caddy:latest
container_name: caddy
restart: unless-stopped
network_mode: host # Wants ports 80 and 443!
links:
- netmaker:api
- netmaker-ui:ui
ports:
- 80:80
- 443:443
cap_add:
- cap_net_bind_service
volumes:
- /root/Caddyfile:/etc/caddy/Caddyfile
# - $PWD/site:/srv # you could also serve a static site in site folder