# Local development overlay. Never use it on a server: it publishes the database and # the API — bound to loopback only — and creates the scratch database the tests use. # # docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d db # make dev-up # same thing, whole stack services: db: ports: - "127.0.0.1:${DB_PORT:-5432}:5432" volumes: - ./scripts/init_test_db.sql:/docker-entrypoint-initdb.d/init_test_db.sql:ro api: ports: - "127.0.0.1:${API_PORT:-8000}:8000" environment: ENVIRONMENT: ${ENVIRONMENT:-development}