36 lines
868 B
YAML
36 lines
868 B
YAML
services:
|
|
backend:
|
|
image: registry.reversed.dev/patchpass/core:latest
|
|
pull_policy: always
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "${PORT:-5000}:${PORT:-5000}"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- TZ=Europe/Berlin
|
|
depends_on:
|
|
database:
|
|
condition: service_healthy
|
|
|
|
# PostgreSQL database. Point your .env DATABASE_URL at 'db' as the host, e.g.
|
|
# DATABASE_URL=postgresql://patchpass:patchpass@db:5432/patchpass
|
|
database:
|
|
image: postgres:16-alpine
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: patchpass
|
|
POSTGRES_PASSWORD: patchpass
|
|
POSTGRES_DB: patchpass
|
|
volumes:
|
|
- patchpass_db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U patchpass"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
patchpass_db:
|