Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zerotier stack #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions zerotier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: '3.7'

services:
ztncui:
container_name: zerotier
hostname: zerotier
domainname: nhu.local
image: keynetworks/ztncui:${VERSION:-latest}
restart: always
ports:
- "3443:3443"
- "9993:9993"
- "3180:3180"
deploy:
labels:
- "traefik.port=3443"
- "traefik.frontend.rule=Host:${DOMAIN:-zerotier.nhu.local}"
- "traefik.enable=true"
- "docker-volume-backup.stop-during-backup=true"
resources:
limits:
memory: 512M
reservations:
memory: 256M
environment:
- HTTPS_PORT=${HTTPS_PORT:-3443}
- ZTNCUI_PASSWD=${ZTNCUI_PASSWD:-admin}
- TZ=${TZ:-Asia/Kolkata}
networks:
- internal
- traefik
labels:
- "docker-volume-backup.stop-during-backup=true"
volumes:
- "ztncui:/opt/key-networks/ztncui/etc/"
- "zt1:/var/lib/zerotier-one/"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"

ztbackup:
image: futurice/docker-volume-backup:2.0.0
environment:
AWS_S3_BUCKET_NAME: bucket-name
AWS_ACCESS_KEY_ID: ${S3KEY}
AWS_SECRET_ACCESS_KEY: ${S3SECRET}
AWS_DEFAULT_REGION: ${S3REGION}
AWS_EXTRA_ARGS: --endpoint-url ${S3ENDPOINT}
TZ: TZ=${TZ:-Asia/Kolkata}
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "zt1:/backup/zt1-data:ro"
- "ztncui:/backup/ztncui-data:ro"
networks:
- internal

volumes:
ztncui:
zt1:

networks:
internal:
attachable: true
traefik:
external: true
name: traefik-net