netmaker/compose/docker-compose.nodns.yml

56 lines
1.4 KiB
YAML
Raw Normal View History

2021-05-06 19:41:11 +08:00
version: "3.4"
services:
2021-08-10 22:02:15 +08:00
rqlite:
container_name: rqlite
image: rqlite/rqlite
network_mode: host
2021-05-06 19:41:11 +08:00
restart: always
2021-08-10 22:02:15 +08:00
volumes:
- sqldata:/rqlite/file/data
2021-05-06 19:41:11 +08:00
netmaker:
2021-08-10 22:02:15 +08:00
depends_on:
- rqlite
2021-05-06 19:41:11 +08:00
privileged: true
container_name: netmaker
2021-08-10 22:02:15 +08:00
image: gravitl/netmaker:v0.7
2021-05-06 19:41:11 +08:00
volumes:
- ./:/local
- /etc/netclient:/etc/netclient
2021-08-10 22:02:15 +08:00
- /usr/bin/wg:/usr/bin/wg
2021-05-06 19:41:11 +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-08-10 22:02:15 +08:00
cap_add:
2021-05-06 19:41:11 +08:00
- NET_ADMIN
- SYS_MODULE
restart: always
network_mode: host
2021-05-11 19:57:38 +08:00
environment:
2021-08-10 22:02:15 +08:00
SERVER_HOST: "SERVER_PUBLIC_IP"
2021-05-11 20:09:46 +08:00
DNS_MODE: "off"
2021-08-10 22:02:15 +08:00
SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
2021-08-11 11:27:13 +08:00
SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
2021-08-10 22:02:15 +08:00
GRPC_SSL: "on"
SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
API_PORT: "8081"
GRPC_PORT: "50051"
CLIENT_MODE: "on"
MASTER_KEY: "REPLACE_MASTER_KEY"
SERVER_GRPC_WIREGUARD: "off"
CORS_ALLOWED_ORIGIN: "*"
2021-05-06 19:41:11 +08:00
netmaker-ui:
container_name: netmaker-ui
depends_on:
- netmaker
2021-08-10 22:02:15 +08:00
image: gravitl/netmaker-ui:v0.7
2021-05-06 19:41:11 +08:00
links:
- "netmaker:api"
ports:
2021-08-10 22:02:15 +08:00
- "8082:80"
2021-05-06 19:41:11 +08:00
environment:
2021-08-10 22:02:15 +08:00
BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
2021-05-06 19:41:11 +08:00
volumes:
2021-08-10 22:02:15 +08:00
sqldata: {}