Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (81 loc) · 1.78 KB
/
Copy pathcompose.yaml
File metadata and controls
81 lines (81 loc) · 1.78 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
app:
profiles: ["prod"]
build:
context: .
dockerfile: Dockerfile
target: runner
image: pdx-hub:local
init: true
restart: unless-stopped
ports:
- "3000:3000"
env_file:
- path: .env.local
required: false
environment:
NODE_ENV: production
PORT: 3000
HOSTNAME: 0.0.0.0
NEXT_TELEMETRY_DISABLED: 1
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:3000').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
app-dev:
profiles: ["dev"]
build:
context: .
dockerfile: Dockerfile
target: dev
image: pdx-hub:dev
init: true
ports:
- "3000:3000"
env_file:
- path: .env.local
required: false
environment:
NODE_ENV: development
PORT: 3000
HOSTNAME: 0.0.0.0
NEXT_TELEMETRY_DISABLED: 1
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:3000').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))",
]
interval: 30s
timeout: 10s
retries: 5
start_period: 45s
develop:
watch:
- action: sync
path: .
target: /app
ignore:
- .git/
- .next/
- coverage/
- node_modules/
- Dockerfile
- compose.yaml
- bun.lock
- package-lock.json
- package.json
- action: rebuild
path: ./package.json
- action: rebuild
path: ./package-lock.json