diff --git a/.env.example b/.env.example index 6af2ab9..61eeb79 100644 --- a/.env.example +++ b/.env.example @@ -38,3 +38,9 @@ POSTGRES_DB=farm_device.db # variables for pgadmin PGADMIN_DEFAULT_EMAIL=fd@farmmonitor.ca PGADMIN_DEFAULT_PASSWORD=farm_device + +# variables for netmaker +# Netmaker client docker image tag +NETCLIENT_DOCKER_TAG="v0.17.1" +NETCLIENT_ACCESSTOKEN="changeme" +NETCLIENT_NAME=$TRAEFIK_DOMAIN diff --git a/docker-compose.yml b/docker-compose.yml index 2e4cf30..f847245 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -118,12 +118,28 @@ services: - traefik.enable=true - traefik.http.services.fd_pgadmin.loadbalancer.server.port=80 - traefik.http.routers.fd_pgadmin.service=fd_pgadmin + + netmaker_client: + container_name: fd_netmaker_client + image: gravitl/netclient:${NETCLIENT_DOCKER_TAG} + networks: + - farm_device + restart: always + environment: + NETCLIENT_ACCESSTOKEN: ${NETCLIENT_ACCESSTOKEN} + NETCLIENT_NAME: ${NETCLIENT_NAME} + volumes: + - netclient:/etc/netclient + labels: + - custom.label=farm_device + volumes: logs: dbdata: pgadmin: traefik: + netclient: networks: farm_device: