项目重构
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
netmaker:
|
||||
container_name: netmaker
|
||||
image: gravitl/netmaker:v0.8.2
|
||||
volumes:
|
||||
- /etc/netclient/config:/etc/netclient/config
|
||||
- dnsconfig:/root/config/dnsconfig
|
||||
- /usr/bin/wg:/usr/bin/wg
|
||||
- /data/sqldata/:/root/data
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
restart: always
|
||||
network_mode: host
|
||||
environment:
|
||||
SERVER_HOST: "140.238.30.110"
|
||||
COREDNS_ADDR: "10.0.0.14"
|
||||
GRPC_SSL: "off"
|
||||
DNS_MODE: "on"
|
||||
CLIENT_MODE: "on"
|
||||
API_PORT: "8081"
|
||||
GRPC_PORT: "50051"
|
||||
SERVER_GRPC_WIREGUARD: "off"
|
||||
CORS_ALLOWED_ORIGIN: "*"
|
||||
DATABASE: "sqlite"
|
||||
NODE_ID: "netmaker-server-s2"
|
||||
# ports:
|
||||
# - "51821-51830:51821-51830/udp"
|
||||
# - "19081:8081"
|
||||
# - "50051:50051"
|
||||
netmaker-ui:
|
||||
container_name: netmaker-ui
|
||||
depends_on:
|
||||
- netmaker
|
||||
image: gravitl/netmaker-ui:v0.8
|
||||
links:
|
||||
- "netmaker:api"
|
||||
ports:
|
||||
- "19800:80"
|
||||
environment:
|
||||
BACKEND_URL: "http://140.238.30.110:8081"
|
||||
restart: always
|
||||
#network_mode: host
|
||||
coredns:
|
||||
depends_on:
|
||||
- netmaker
|
||||
image: coredns/coredns
|
||||
command: -conf /root/dnsconfig/Corefile-GitHub
|
||||
container_name: coredns
|
||||
restart: always
|
||||
ports:
|
||||
- "19053:53/tcp"
|
||||
- "19053:53/udp"
|
||||
#network_mode: host
|
||||
volumes:
|
||||
- dnsconfig:/root/dnsconfig
|
||||
volumes:
|
||||
dnsconfig: {}
|
||||
Reference in New Issue
Block a user