-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
46 lines (44 loc) · 1.23 KB
/
compose.yaml
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
version: "3.7"
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
# command:
# - --encryptionEnv #optional
# - ENCRYPTION #optional
# environment:
# ENCRYPTION: example #optional
ports:
- "8090:8090"
volumes:
- ./pb_data:/pb_data
# - /path/to/public:/pb_public #optional
# - /path/to/hooks:/pb_hooks #optional
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5
# venue:
# image: ghcr.io/odama626/venue:latest
# # volumes:
# # - ./Caddyfile:/etc/caddy/Caddyfile:ro
# ports:
# - 80:80
# # - 443:443
# environment:
# API_URL: "https://pb.venue.lilbyte.dev"
caddy:
image: caddy:latest
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./dist:/dist:ro
environment:
API_URL: "pocketbase:8090"
extra_hosts:
- 'host.docker.internal:host-gateway'
command: ["caddy", "run", "--watch", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]