added keycloak integration, user endpoints, env file
This commit is contained in:
@@ -4,13 +4,34 @@ services:
|
||||
context: .
|
||||
environment:
|
||||
PORT: 1656
|
||||
extra_hosts:
|
||||
- "auth.localhost:host-gateway"
|
||||
ports:
|
||||
- 1656:1656
|
||||
depends_on:
|
||||
- redis
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
|
||||
redis:
|
||||
image: "redis:alpine"
|
||||
ports:
|
||||
- "6379:6379"
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: postgres:18.3
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: fastapi_db
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user