-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
94 lines (89 loc) · 2.26 KB
/
compose.yml
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
services:
caddy:
image: caddy:2.7.4-alpine
restart: unless-stopped
container_name: rl-caddy
ports:
- 80:80
- 443:443
- 443:443/udp
depends_on:
svelte-kit:
condition: service_healthy
pocketbase:
condition: service_healthy
volumes:
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- ./data/caddy/data:/data
- ./data/caddy/config:/config
svelte-kit:
build:
context: .
dockerfile: docker/bun/Dockerfile
restart: unless-stopped
container_name: rl-svelte-kit
working_dir: /home/bun/svelte-kit
entrypoint: ["./scripts/bun.sh"]
stdin_open: true
tty: true
depends_on:
pocketbase:
condition: service_healthy
environment:
- ORIGIN=http://local.ranky-list.com
volumes:
- svelte-kit-volume:/home/bun/svelte-kit
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:5173/api/healthz || exit 1
timeout: 20s
retries: 10
start_period: 60s
interval: 60s
start_interval: 1s
histoire:
build:
context: .
dockerfile: docker/bun/Dockerfile
restart: unless-stopped
container_name: rl-histoire
command: bun run story:dev --port 6006
working_dir: /home/bun/histoire
stdin_open: true
tty: true
volumes:
- svelte-kit-volume:/home/bun/histoire
depends_on:
svelte-kit:
condition: service_healthy
mailcatcher:
image: sj26/mailcatcher:latest
restart: unless-stopped
container_name: rl-mailcatcher
pocketbase:
build:
context: .
dockerfile: ./docker/pocketbase/Dockerfile
restart: unless-stopped
container_name: rl-pocketbase
command: wgo run -xdir pb_data main.go serve --http 0.0.0.0:8090
stdin_open: true
tty: true
environment:
DB_USER: "${DB_USER:?err}"
DB_PASS: "${DB_PASS:?err}"
volumes:
- ./pocketbase:/usr/src/app
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
timeout: 20s
retries: 10
start_period: 60s
interval: 60s
start_interval: 1s
volumes:
svelte-kit-volume:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/svelte-kit