forked from Hostzero-GmbH/yet-another-status-page
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
51 lines (48 loc) · 1.2 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
51 lines (48 loc) · 1.2 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
services:
cms:
image: node:24-alpine
ports:
- '3333:3000'
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
command: sh -c "npm install && npm run dev"
depends_on:
postgres:
condition: service_healthy
environment:
- DATABASE_URI=postgresql://postgres:postgres@postgres:5432/hostzero_status
- PAYLOAD_SECRET=dev-secret-key-change-in-production
- SERVER_URL=http://localhost:3333
- DEBUG=twilio:*
postgres:
image: postgres:18-alpine
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hostzero_status
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# Optional: pgAdmin for database management
pgadmin:
image: dpage/pgadmin4:latest
ports:
- '5050:80'
environment:
PGADMIN_DEFAULT_EMAIL: admin@hostzero.com
PGADMIN_DEFAULT_PASSWORD: admin
depends_on:
- postgres
profiles:
- tools
volumes:
postgres_data:
node_modules: