mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
Remove the need for host binding
This commit is contained in:
parent
a042f3ddc4
commit
5a6e445ff2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue