Files
ForgeBucket/docker-compose.prod.yml
T
2026-05-13 00:55:28 +02:00

36 lines
799 B
YAML

services:
postgres:
image: postgres:18.3
restart: unless-stopped
environment:
POSTGRES_DB: forgebucket
POSTGRES_USER: forgebucket
POSTGRES_PASSWORD: forgebucket
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U forgebucket"]
interval: 5s
timeout: 5s
retries: 10
app:
build: .
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file: .env
environment:
DATABASE_URL: postgres://forgebucket:forgebucket@postgres:5432/forgebucket?sslmode=disable
ports:
- "8080:8080"
volumes:
- repo_data:/tmp/forgebucket/repos
- oci_data:/tmp/forgebucket/oci
volumes:
postgres_data:
repo_data:
oci_data: