Patchpass V1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user