Repository navigation
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
53 lines (49 loc) · 2.28 KB
/
Copy pathdocker-stack.yml
File metadata and controls
53 lines (49 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.9"
# ─────────────────────────────────────────────────────────────────────────────
# CandSync – Docker Swarm Stack for Dokploy
# Deploy: docker stack deploy -c docker-stack.yml candsync --resolve-image never
# Domain: http://directory.hiperboard.com
# ─────────────────────────────────────────────────────────────────────────────
services:
candsync:
image: candsync:latest # Built locally via: docker compose build
networks:
- dokploy-network
environment:
- NODE_ENV=production
- PORT=5000
- DB_PATH=/app/data/candsync.db
- JWT_SECRET=${JWT_SECRET} # Set in .env or export before deploying
- FRONTEND_URL=http://directory.hiperboard.com
volumes:
- candsync-data:/app/data # SQLite database persistence
- candsync-uploads:/app/uploads # Resume file persistence
healthcheck:
disable: true # Required: Swarm kills containers marked unhealthy too early
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 60s
update_config:
parallelism: 1
delay: 10s
# Traefik Swarm labels (picked up by Dokploy's Traefik via Swarm provider)
labels:
- "traefik.enable=true"
- "traefik.docker.network=dokploy-network"
- "traefik.http.routers.candsync.rule=Host(`directory.hiperboard.com`)"
- "traefik.http.routers.candsync.entrypoints=web"
- "traefik.http.services.candsync.loadbalancer.server.port=5000"
# ─── Join Dokploy's shared Traefik overlay network ───────────────────────────
networks:
dokploy-network:
external: true
# ─── Persistent volumes ───────────────────────────────────────────────────────
volumes:
candsync-data:
driver: local
candsync-uploads:
driver: local