-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.staging.yml
More file actions
95 lines (83 loc) · 2.02 KB
/
Copy pathcompose.staging.yml
File metadata and controls
95 lines (83 loc) · 2.02 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
garage:
env_file:
- .env.staging
postgres:
env_file:
- .env.staging
queue-worker:
image: ghcr.io/maciejgarncarski/snack-rate/queue-worker:${IMAGE_TAG:-staging}
pull_policy: always
env_file:
- .env.staging
db-tool:
image: ghcr.io/maciejgarncarski/snack-rate/db-tool:${IMAGE_TAG:-staging}
pull_policy: always
env_file:
- .env.staging
depends_on:
postgres:
condition: service_healthy
restart: "no"
app:
image: ghcr.io/maciejgarncarski/snack-rate:${IMAGE_TAG:-staging}
restart: unless-stopped
env_file:
- .env.staging
depends_on:
queue-worker:
condition: service_started
postgres:
condition: service_healthy
garage:
condition: service_started
prometheus:
condition: service_started
tempo:
condition: service_started
loki:
condition: service_started
alloy:
condition: service_started
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://localhost:3000/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))",
]
interval: 5s
timeout: 3s
retries: 5
start_period: 60s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
backup:
env_file:
- .env.staging
volumes:
- /var/backups/snack-rate:/backups
grafana:
env_file:
- .env.staging
caddy:
image: caddy:2.11.4-alpine
env_file:
- .env.staging
restart: unless-stopped
ports:
- "${CADDY_HOST_HTTP_PORT:-8080}:80"
- "${CADDY_HOST_HTTPS_PORT:-8443}:443"
- "${CADDY_HOST_HTTPS_PORT:-8443}:443/udp"
volumes:
- ./config/Caddyfile.staging:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
prometheus:
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./config/alerts:/etc/prometheus/alerts:ro