feat: add Docker Compose deployment config
This commit is contained in:
parent
487368b7e8
commit
f93aa4593e
9
deploy/.env.example
Normal file
9
deploy/.env.example
Normal file
@ -0,0 +1,9 @@
|
||||
NETBIRD_API_URL=https://netbird.example.com/api
|
||||
NETBIRD_API_TOKEN=
|
||||
GITEA_URL=https://gitea.example.com
|
||||
GITEA_TOKEN=
|
||||
GITEA_REPO=BlastPilot/netbird-gitops
|
||||
RECONCILER_TOKEN=
|
||||
POLL_INTERVAL_SECONDS=30
|
||||
PORT=8080
|
||||
DATA_DIR=/data
|
||||
21
deploy/docker-compose.yml
Normal file
21
deploy/docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
services:
|
||||
netbird-reconciler:
|
||||
image: gitea.internal/blastpilot/netbird-reconciler:latest
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- reconciler-data:/data
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.reconciler.rule=Host(`reconciler.internal`)"
|
||||
- "traefik.http.services.reconciler.loadbalancer.server.port=8080"
|
||||
|
||||
volumes:
|
||||
reconciler-data:
|
||||
Loading…
x
Reference in New Issue
Block a user