mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 00:24:37 +08:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
version: "3.4"
|
|
|
|
volumes:
|
|
dnsconfig:
|
|
driver: local
|
|
services:
|
|
mongodb:
|
|
image: mongo:4.2
|
|
ports:
|
|
- "27017:27017"
|
|
container_name: mongodb
|
|
volumes:
|
|
- mongovol:/data/db
|
|
restart: always
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: mongoadmin
|
|
MONGO_INITDB_ROOT_PASSWORD: mongopass
|
|
netmaker:
|
|
container_name: netmaker
|
|
ports:
|
|
- "8081:8081"
|
|
- "50051:50051"
|
|
depends_on:
|
|
- mongodb
|
|
image: gravitl/netmaker:v0.5
|
|
restart: always
|
|
environment:
|
|
SERVER_HOST: "HOST_IP"
|
|
CLIENT_MODE: "off"
|
|
SERVER_GRPC_WIREGUARD: "off"
|
|
netmaker-ui:
|
|
container_name: netmaker-ui
|
|
depends_on:
|
|
- netmaker
|
|
image: gravitl/netmaker-ui:v0.5
|
|
links:
|
|
- "netmaker:api"
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
BACKEND_URL: "http://HOST_IP:8081"
|
|
coredns:
|
|
depends_on:
|
|
- netmaker
|
|
image: coredns/coredns
|
|
command: -conf /root/dnsconfig/Corefile
|
|
container_name: coredns
|
|
restart: always
|
|
ports:
|
|
- "53:53/udp"
|
|
volumes:
|
|
- dnsconfig:/root/dnsconfig
|
|
volumes:
|
|
mongovol: {}
|
|
dnsconfig: {}
|