-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (43 loc) · 983 Bytes
/
compose.yaml
File metadata and controls
46 lines (43 loc) · 983 Bytes
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
services:
web:
build: .
depends_on:
valkey:
condition: service_healthy
restart: unless-stopped
volumes:
- ./.srv/log:/app/log
ports:
- "8080:8080"
environment:
- FG_REDIS_HOST=valkey:6379
- FG_REDIS_PASSWORD=
- FG_REDIS_DB=0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
valkey:
image: valkey/valkey:8
restart: unless-stopped
volumes:
- ./.srv/valkey:/data
expose:
- 6379
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# cloudflared:
# image: cloudflare/cloudflared:latest
# restart: no
# command: tunnel run --token-file /run/secrets/cf_tunnel_token
# secrets:
# - cf_tunnel_token
# secrets:
# cf_tunnel_token:
# file: ./.secrets/cf_tunnel_token