mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
42 lines
987 B
YAML
42 lines
987 B
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
|
|
depends_on:
|
|
- mongodb
|
|
image: gravitl/netmaker:v0.5
|
|
ports:
|
|
- "8081:8081"
|
|
- "50051:50051"
|
|
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
|
|
restart: always
|
|
environment:
|
|
CLIENT_MODE: "off"
|
|
DNS_MODE: "off"
|
|
SERVER_HOST: "localhost"
|
|
volumes:
|
|
mongovol: {}
|
|
dnsconfig: {}
|