mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 00:24:37 +08:00
fixing docker-compose
This commit is contained in:
parent
c7ca3c2495
commit
a7b1e54c2b
2 changed files with 69 additions and 5 deletions
61
compose/docker-compose.contained.yml
Normal file
61
compose/docker-compose.contained.yml
Normal file
|
@ -0,0 +1,61 @@
|
|||
version: "3.4"
|
||||
|
||||
services:
|
||||
netmaker:
|
||||
container_name: netmaker
|
||||
image: gravitl/netmaker:v0.8.5
|
||||
volumes:
|
||||
- dnsconfig:/root/config/dnsconfig
|
||||
- /usr/bin/wg:/usr/bin/wg
|
||||
- sqldata:/root/data
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
restart: always
|
||||
privileged: true
|
||||
environment:
|
||||
SERVER_HOST: "SERVER_PUBLIC_IP"
|
||||
SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
|
||||
SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
|
||||
COREDNS_ADDR: "SERVER_PUBLIC_IP"
|
||||
GRPC_SSL: "on"
|
||||
DNS_MODE: "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: "*"
|
||||
DATABASE: "sqlite"
|
||||
ports:
|
||||
- "51821-51830:51821-51830/udp"
|
||||
- "8081:8081"
|
||||
- "50051:50051"
|
||||
netmaker-ui:
|
||||
container_name: netmaker-ui
|
||||
depends_on:
|
||||
- netmaker
|
||||
image: gravitl/netmaker-ui:v0.8.5
|
||||
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
|
||||
ports:
|
||||
- "COREDNS_IP:53:53/udp"
|
||||
- "COREDNS_IP:53:53/tcp"
|
||||
volumes:
|
||||
- dnsconfig:/root/dnsconfig
|
||||
volumes:
|
||||
sqldata: {}
|
||||
dnsconfig: {}
|
|
@ -5,12 +5,18 @@ services:
|
|||
container_name: netmaker
|
||||
image: gravitl/netmaker:v0.8.5
|
||||
volumes:
|
||||
- dnsconfig:/root/config/dnsconfig
|
||||
- /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
|
||||
- /usr/bin/wg:/usr/bin/wg
|
||||
- dnsconfig:/root/config/dnsconfig
|
||||
- sqldata:/root/data
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
restart: always
|
||||
network_mode: host
|
||||
privileged: true
|
||||
environment:
|
||||
SERVER_HOST: "SERVER_PUBLIC_IP"
|
||||
|
@ -28,10 +34,7 @@ services:
|
|||
SERVER_GRPC_WIREGUARD: "off"
|
||||
CORS_ALLOWED_ORIGIN: "*"
|
||||
DATABASE: "sqlite"
|
||||
ports:
|
||||
- "51821-51830:51821-51830/udp"
|
||||
- "8081:8081"
|
||||
- "50051:50051"
|
||||
NODE_ID: "netmaker-server-1"
|
||||
netmaker-ui:
|
||||
container_name: netmaker-ui
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in a new issue