-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.3 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
x-logging: &default-logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
# === INFRASTRUCTURE ===
cloudflared:
image: cloudflare/cloudflared:latest
container_name: the-plug-cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run
logging: *default-logging
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
networks:
- the-plug-network
depends_on:
- caddy
caddy:
image: caddy:2-alpine
container_name: the-plug-caddy
restart: unless-stopped
logging: *default-logging
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
networks:
- the-plug-network
depends_on:
server:
condition: service_healthy
# === BACKEND API ===
server:
build: .
container_name: the-plug-server
restart: unless-stopped
logging: *default-logging
environment:
- NODE_ENV=production
env_file:
- .env
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:5113/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
networks:
- the-plug-network
networks:
the-plug-network:
name: the-plug-network
volumes:
caddy_data:
caddy_config: