auth-ui/docker-compose.yml

37 lines
825 B
YAML
Raw Normal View History

2021-12-11 02:11:48 +01:00
version: '3.9'
services:
postgres:
2022-02-20 18:01:52 +01:00
image: postgres:14.2-alpine3.15
2021-12-11 02:11:48 +01:00
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=auth
2022-02-20 18:01:52 +01:00
auth-api-db-migrate:
image: lilleman/auth-api-db-migrate:0.3.3
2021-12-11 02:11:48 +01:00
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
2022-02-20 18:01:52 +01:00
command: ["--wait", "up"]
profiles: ["migrate"]
2021-12-11 02:11:48 +01:00
depends_on:
- postgres
auth-api:
2022-02-20 18:01:52 +01:00
image: lilleman/auth-api:0.3.3
2021-12-11 02:11:48 +01:00
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
2022-02-20 18:01:52 +01:00
auth-ui:
build: .
depends_on:
- auth-api
ports:
- 8080:80