Files
aktiteil/compose.yaml
2025-11-26 21:48:06 +01:00

39 lines
810 B
YAML

services:
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: local
volumes:
- pgdata:/var/lib/postgresql
frontend:
profiles:
- frontend
build: .
ports:
- 5173:3000
environment:
DATABASE_URL: 'postgres://root:mysecretpassword@db:5432/local'
ORIGIN: 'http://localhost:5173'
AUTH_SECRET: ${AUTH_SECRET}
AUTH_TRUST_HOST: true
AUTH_NEXTCLOUD_ID: ${AUTH_NEXTCLOUD_ID}
AUTH_NEXTCLOUD_SECRET: ${AUTH_NEXTCLOUD_SECRET}
AUTH_NEXTCLOUD_ISSUER: ${AUTH_NEXTCLOUD_ISSUER}
depends_on:
- db
develop:
watch:
- path: .
action: rebuild
target: /app
volumes:
pgdata: