repertory-api/docker/docker-compose.yml
2026-06-09 15:07:08 -04:00

29 lines
577 B
YAML

services:
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: repertory
POSTGRES_PASSWORD: repertory
POSTGRES_DB: tunes
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
api:
build:
context: ..
dockerfile: docker/Dockerfile
restart: unless-stopped
ports:
- "${API_PORT:-5000}:5000"
env_file:
- ../.env
environment:
DATABASE_URL: postgresql://repertory:repertory@db:5432/tunes
depends_on:
- db
volumes:
pgdata: