Skip to content

Commit

Permalink
add netclient docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoik committed Jan 3, 2024
1 parent d6c332f commit 59214bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 59214bd

Please sign in to comment.