38 lines
891 B
YAML
38 lines
891 B
YAML
services:
|
|
postgres:
|
|
image: postgres:18.3
|
|
container_name: fb-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: forgebucket
|
|
POSTGRES_USER: forgebucket
|
|
POSTGRES_PASSWORD: forgebucket
|
|
volumes:
|
|
- fb_pg_data:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U forgebucket"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
app:
|
|
image: thedangle/forgebucket:v0.9.1
|
|
container_name: fb-app
|
|
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:
|
|
- fb_repo_data:/tmp/forgebucket/repos
|
|
- fb_oci_data:/tmp/forgebucket/oci
|
|
|
|
volumes:
|
|
fb_pg_data:
|
|
fb_repo_data:
|
|
fb_oci_data:
|