version: '3.9' services: postgres: image: postgres:14.2-alpine3.15 environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=auth auth-api-db-migrate: image: lilleman/auth-api-db-migrate:0.3.7 environment: - DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable command: ["--wait", "up"] profiles: ["migrate"] depends_on: - postgres auth-api: image: lilleman/auth-api:0.3.7 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 auth-ui: build: . depends_on: - auth-api environment: - ADMIN_API_KEY=hihi - API_URL=http://auth-api:4000 - JWT_SHARED_SECRET=hihi - PORT=4001 ports: - 4001:4001