-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (56 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
58 lines (56 loc) · 1.12 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
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- POCKETBASE_URL=http://pocketbase:8090
env_file:
- .env
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))",
]
interval: 20s
timeout: 5s
retries: 3
start_period: 20s
depends_on:
pocketbase:
condition: service_healthy
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
pocketbase:
build:
context: .
dockerfile: Dockerfile.pb
restart: always
ports:
- "8090:8090"
volumes:
- ./db/pb_data:/pb_data
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8090/api/health",
]
interval: 10s
timeout: 5s
retries: 3