-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
37 lines (33 loc) · 990 Bytes
/
Copy pathcompose.yml
File metadata and controls
37 lines (33 loc) · 990 Bytes
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
services:
db:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: subnetly
POSTGRES_PASSWORD: subnetly
POSTGRES_DB: subnetly
volumes:
- subnetly-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U subnetly -d subnetly"]
interval: 10s
timeout: 5s
retries: 10
app:
image: ghcr.io/mannobeats/subnetly:latest
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
# Change the host port (left side) if needed.
- "3000:3000"
environment:
DATABASE_URL: "postgresql://subnetly:subnetly@db:5432/subnetly?schema=public"
NODE_ENV: production
# REQUIRED: replace with a strong random secret.
BETTER_AUTH_SECRET: "replace-with-a-long-random-secret"
# Optional: allow self-signed certs for service health checks.
HEALTHCHECK_ALLOW_SELF_SIGNED: "false"
volumes:
subnetly-db: