netmaker/compose/docker-compose.contained.yml

93 lines
2.3 KiB
YAML
Raw Normal View History

2021-11-04 04:50:42 +08:00
version: "3.4"
services:
netmaker:
container_name: netmaker
2022-05-02 22:08:11 +08:00
image: gravitl/netmaker:v0.13.1
2021-11-04 04:50:42 +08:00
volumes:
- dnsconfig:/root/config/dnsconfig
- sqldata:/root/data
2022-04-20 01:10:39 +08:00
- /root/certs:/etc/netmaker/
2021-11-04 04:50:42 +08:00
cap_add:
- NET_ADMIN
2022-01-26 13:46:12 +08:00
- NET_RAW
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
2022-04-23 04:01:58 +08:00
- net.ipv6.conf.all.disable_ipv6=0
2021-11-04 04:50:42 +08:00
restart: always
environment:
2022-04-12 22:43:02 +08:00
SERVER_NAME: "broker.NETMAKER_BASE_DOMAIN"
2021-11-04 04:50:42 +08:00
SERVER_HOST: "SERVER_PUBLIC_IP"
SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
COREDNS_ADDR: "SERVER_PUBLIC_IP"
DNS_MODE: "on"
SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
API_PORT: "8081"
CLIENT_MODE: "on"
MASTER_KEY: "REPLACE_MASTER_KEY"
CORS_ALLOWED_ORIGIN: "*"
2021-11-17 11:39:28 +08:00
DISPLAY_KEYS: "on"
2021-11-04 04:50:42 +08:00
DATABASE: "sqlite"
2021-11-09 20:33:13 +08:00
NODE_ID: "netmaker-server-1"
2022-02-02 05:25:31 +08:00
MQ_HOST: "mq"
2022-01-26 13:46:12 +08:00
HOST_NETWORK: "off"
VERBOSITY: "1"
2022-04-26 23:02:21 +08:00
MANAGE_IPTABLES: "off"
2021-11-04 04:50:42 +08:00
ports:
- "51821-51830:51821-51830/udp"
- "8081:8081"
netmaker-ui:
container_name: netmaker-ui
depends_on:
- netmaker
2022-05-02 22:08:11 +08:00
image: gravitl/netmaker-ui:v0.13.1
2021-11-04 04:50:42 +08:00
links:
- "netmaker:api"
ports:
- "8082:80"
environment:
BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
restart: always
coredns:
depends_on:
- netmaker
image: coredns/coredns
command: -conf /root/dnsconfig/Corefile
container_name: coredns
restart: always
volumes:
- dnsconfig:/root/dnsconfig
2021-11-09 20:33:13 +08:00
caddy:
image: caddy:latest
container_name: caddy
restart: unless-stopped
network_mode: host # Wants ports 80 and 443!
volumes:
- /root/Caddyfile:/etc/caddy/Caddyfile
# - $PWD/site:/srv # you could also serve a static site in site folder
- caddy_data:/data
- caddy_conf:/config
2022-02-02 05:25:31 +08:00
mq:
image: eclipse-mosquitto:2.0.11-openssl
depends_on:
- netmaker
2022-02-02 05:25:31 +08:00
container_name: mq
restart: unless-stopped
2022-02-02 05:25:31 +08:00
ports:
- "127.0.0.1:1883:1883"
- "8883:8883"
volumes:
- /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
2022-04-20 01:10:39 +08:00
- /root/certs/:/mosquitto/certs/
- mosquitto_data:/mosquitto/data
2022-02-02 05:25:31 +08:00
- mosquitto_logs:/mosquitto/log
2021-11-04 04:50:42 +08:00
volumes:
2021-11-09 20:33:13 +08:00
caddy_data: {}
caddy_conf: {}
2021-11-04 04:50:42 +08:00
sqldata: {}
dnsconfig: {}
mosquitto_data: {}
mosquitto_logs: {}