forked from r3-dev/r3-mvp-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.04 KB
/
docker-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
version: "3.7"
services:
backend:
build:
context: .
dockerfile: Dockerfile
# reference docker target
target: backend
container_name: backend
restart: unless-stopped
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
volumes:
- pocketbase-data:/dist/pb_data
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:${BACKEND_PORT}/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5
env_file:
- .env
frontend:
build:
context: .
dockerfile: Dockerfile
# reference docker target
target: frontend
container_name: frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:${FRONTEND_PORT}/functions/health || exit 1
interval: 5s
timeout: 5s
retries: 5
env_file:
- .env
volumes:
pocketbase-data: