netmaker/docker-compose.nodns.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

2021-05-06 19:41:11 +08:00
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:
privileged: true
container_name: netmaker
depends_on:
- mongodb
image: gravitl/netmaker:v0.3
volumes:
- ./:/local
- /etc/netclient:/etc/netclient
- dnsconfig:/root/config/dnsconfig
- /usr/bin/wg:/usr/bin/wg:ro
- /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
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: always
network_mode: host
2021-05-11 19:57:38 +08:00
environment:
CLIENT_MODE: "off"
2021-05-11 20:09:46 +08:00
DNS_MODE: "off"
2021-05-06 19:41:11 +08:00
netmaker-ui:
container_name: netmaker-ui
depends_on:
- netmaker
image: gravitl/netmaker-ui:v0.3
links:
- "netmaker:api"
ports:
- "80:80"
environment:
2021-05-11 19:57:38 +08:00
BACKEND_URL: "http://your-backend:8081"
2021-05-06 19:41:11 +08:00
volumes:
mongovol: {}
dnsconfig: {}