auth-api/docker-compose.yml
Lilleman d6fd4e705f Upgrades
Better resilience against crashes

Even better resilience against crashes

Fixed stuff

Renamed API service

Fixed some paths

Simplified error handling

Updated README
2021-09-06 03:14:23 +02:00

46 lines
970 B
YAML

version: '3.9'
services:
postgres:
image: postgres:13.4-alpine3.14
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=auth
ports:
- 5432:5432
db-migrations:
image: amacneil/dbmate:v1.12.1
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
volumes:
- "./db:/db:ro"
command: --wait up
profiles: ["migrations"]
depends_on:
- postgres
auth-api:
build: .
environment:
- ADMIN_API_KEY=hihi
- DATABASE_URL=postgres://postgres:postgres@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:4000
- JWT_SHARED_SECRET=hihi
profiles: ["tests"]
depends_on:
- auth-api