services:
postgres:
image: postgres:17
container_name: recourse_postgres
ports:
- 5439:5432
environment:
POSTGRES_DB: recourse
POSTGRES_USER: recourse_user
POSTGRES_PASSWORD: recourse_password
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U recourse_user -d recourse"]
interval: 5s
timeout: 3s
retries: 10
webservice:
build:
context: .
image: recourse:local
container_name: recourse_webservice
depends_on:
postgres: { condition: service_healthy }
environment:
DATABASE_URL: postgres://recourse_user:recourse_password@postgres:5432/recourse
BIND_ADDRESS: 0.0.0.0:3000
AUTO_MIGRATE: "true"
REGISTRATION_ENABLED: "false"
# Set to the public origin so the API-token curl example is correct
# behind a reverse proxy. Leave unset for LAN access.
# PUBLIC_URL: https://recourse.example.com
ports:
- 3000:3000
volumes:
postgres_data:
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
1.0 KiB · text
History
2264215