forked from balahero03/eOrbitor_Pulse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.16 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
services:
db:
image: postgres:16
container_name: eorbitor-db
restart: unless-stopped
environment:
POSTGRES_USER: eorbitor
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: eorbitor_pulse
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U eorbitor -d eorbitor_pulse"]
interval: 5s
timeout: 5s
retries: 10
# Not exposed to host by default — only the app container reaches it.
app:
build:
context: .
dockerfile: Dockerfile
container_name: eorbitor-app
restart: unless-stopped
depends_on:
db:
condition: service_healthy
env_file:
- .env.local
environment:
# Override DB host to the compose service name regardless of .env.local
DATABASE_URL: postgresql://eorbitor:${POSTGRES_PASSWORD}@db:5432/eorbitor_pulse
NODE_ENV: production
PORT: "3000"
HOSTNAME: "0.0.0.0"
# Set SEED=true on first run to seed the admin user, then remove/set false
SEED: ${SEED:-false}
ports:
- "127.0.0.1:3000:3000" # only localhost; Cloudflare Tunnel connects here
volumes:
pgdata: