netmaker/compose/docker-compose.yml

65 lines
1.7 KiB
YAML
Raw Normal View History

2021-05-05 05:36:55 +08:00
version: "3.4"
2021-03-26 00:17:52 +08:00
services:
2021-03-26 00:59:14 +08:00
netmaker:
container_name: netmaker
2021-10-27 23:02:11 +08:00
image: gravitl/netmaker:v0.8.5
2021-05-19 01:55:06 +08:00
volumes:
2021-11-04 04:50:42 +08:00
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
- /run/systemd/system:/run/systemd/system
- /etc/systemd/system:/etc/systemd/system
- /sys/fs/cgroup:/sys/fs/cgroup
2021-05-19 01:55:06 +08:00
- /usr/bin/wg:/usr/bin/wg
2021-11-04 04:50:42 +08:00
- dnsconfig:/root/config/dnsconfig
2021-09-23 12:12:32 +08:00
- sqldata:/root/data
2021-05-19 01:55:06 +08:00
cap_add:
- NET_ADMIN
2021-11-04 04:50:42 +08:00
- SYS_ADMIN
2021-03-26 00:17:52 +08:00
restart: always
2021-11-04 04:50:42 +08:00
network_mode: host
2021-10-28 01:09:46 +08:00
privileged: true
2021-05-17 23:55:03 +08:00
environment:
2021-08-12 00:19:28 +08:00
SERVER_HOST: "SERVER_PUBLIC_IP"
2021-09-23 12:12:32 +08:00
SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
2021-08-12 00:19:28 +08:00
COREDNS_ADDR: "SERVER_PUBLIC_IP"
2021-09-23 12:12:32 +08:00
GRPC_SSL: "on"
2021-08-12 00:19:28 +08:00
DNS_MODE: "on"
2021-09-23 12:12:32 +08:00
SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
2021-08-12 00:19:28 +08:00
API_PORT: "8081"
GRPC_PORT: "50051"
2021-10-07 23:28:24 +08:00
CLIENT_MODE: "on"
2021-08-12 00:19:28 +08:00
MASTER_KEY: "REPLACE_MASTER_KEY"
2021-09-23 12:12:32 +08:00
SERVER_GRPC_WIREGUARD: "off"
2021-08-12 00:19:28 +08:00
CORS_ALLOWED_ORIGIN: "*"
2021-09-23 12:12:32 +08:00
DATABASE: "sqlite"
2021-11-04 04:50:42 +08:00
NODE_ID: "netmaker-server-1"
2021-03-26 00:59:14 +08:00
netmaker-ui:
container_name: netmaker-ui
2021-03-26 00:17:52 +08:00
depends_on:
2021-03-26 00:59:14 +08:00
- netmaker
2021-10-27 23:02:11 +08:00
image: gravitl/netmaker-ui:v0.8.5
2021-05-05 05:36:55 +08:00
links:
- "netmaker:api"
2021-03-26 00:17:52 +08:00
ports:
2021-08-12 00:19:28 +08:00
- "8082:80"
2021-03-26 00:17:52 +08:00
environment:
2021-08-12 00:19:28 +08:00
BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
2021-09-23 12:12:32 +08:00
restart: always
2021-05-19 01:55:06 +08:00
coredns:
depends_on:
- netmaker
image: coredns/coredns
command: -conf /root/dnsconfig/Corefile
container_name: coredns
restart: always
ports:
2021-09-23 12:12:32 +08:00
- "COREDNS_IP:53:53/udp"
- "COREDNS_IP:53:53/tcp"
2021-05-19 01:55:06 +08:00
volumes:
- dnsconfig:/root/dnsconfig
2021-03-26 00:17:52 +08:00
volumes:
2021-08-12 00:19:28 +08:00
sqldata: {}
2021-05-19 01:55:06 +08:00
dnsconfig: {}