auth-api/docker-compose.yml
Lilleman c4a97644ed
Some checks reported errors
continuous-integration/drone Build encountered an error
Updating versions and changing log system
2023-02-20 23:54:02 +01:00

46 lines
970 B
YAML

version: '3.9'
services:
postgres:
image: postgres:15.2-alpine3.17
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=prutt
- POSTGRES_DB=auth
ports:
- 5432:5432
db-migrations:
build:
context: .
dockerfile: Dockerfile.migrations
environment:
- DATABASE_URL=postgres://postgres:prutt@postgres:5432/auth?sslmode=disable
command: ["--wait", "up"]
profiles: ["migrations"]
depends_on:
- postgres
auth-api:
build: .
environment:
- ADMIN_API_KEY=hihi
- DATABASE_URL=postgres://postgres:prutt@postgres:5432/auth?sslmode=disable
- JWT_SHARED_SECRET=hihi
- WEB_BIND_HOST=:4000
depends_on:
- postgres
ports:
- 4000:4000
tests:
build:
context: tests
environment:
- ADMIN_API_KEY=hihi
- AUTH_URL=http://auth-api:4000
- JWT_SHARED_SECRET=hihi
profiles: ["tests"]
depends_on:
- auth-api