mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
28 lines
No EOL
616 B
YAML
28 lines
No EOL
616 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
ditto:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.test
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
|
|
- RUST_BACKTRACE=1
|
|
ports:
|
|
- "4036:4036"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy |