-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.template.yml
More file actions
47 lines (44 loc) · 1.34 KB
/
Copy pathdocker-compose.template.yml
File metadata and controls
47 lines (44 loc) · 1.34 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
# Docker Compose template for Arbeitszeit-Tracker customer deployment
# This file is used by provision.sh to generate customer-specific docker-compose.yml
#
# Variables replaced by provision.sh:
# - ${CUSTOMER_NAME}: Customer identifier (e.g., "demo", "acme")
# - ${TUNNEL_TOKEN}: Cloudflare Tunnel token
# - ${ADMIN_PASSWORD}: Admin password (generated or provided)
# - ${INIT_DUMMY_DATA}: "true" or "false"
services:
app:
image: arbeitszeit:latest
container_name: az-${CUSTOMER_NAME}
restart: unless-stopped
environment:
- PORT=3000
- DATABASE_PATH=/data/arbeitszeit.db
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- INIT_DUMMY_DATA=${INIT_DUMMY_DATA}
- NODE_ENV=production
volumes:
- ./data:/data
networks:
- az-${CUSTOMER_NAME}-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
tunnel:
image: cloudflare/cloudflared:latest
container_name: az-${CUSTOMER_NAME}-tunnel
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
networks:
- az-${CUSTOMER_NAME}-network
depends_on:
app:
condition: service_healthy
networks:
az-${CUSTOMER_NAME}-network:
driver: bridge