add to dokcer compose yaml the keycloak service and DB
This commit is contained in:
@@ -88,13 +88,43 @@ services:
|
||||
- STAGING=0
|
||||
restart: unless-stopped
|
||||
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:latest
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
KEYCLOAK_USER: admin
|
||||
KEYCLOAK_PASSWORD: admin
|
||||
DB_VENDOR: postgres
|
||||
DB_ADDR: postgres # Имя сервиса PostgreSQL
|
||||
DB_DATABASE: keycloak
|
||||
DB_USER: postgres
|
||||
DB_PASSWORD: postgres
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
- internal
|
||||
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_DB: keycloak
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
volumes:
|
||||
- keycloak-postgres:/var/lib/postgresql/data
|
||||
networks:
|
||||
- internal
|
||||
|
||||
volumes:
|
||||
api:
|
||||
postgres-db:
|
||||
goose:
|
||||
certbot_data:
|
||||
certbot_www:
|
||||
keycloak-postgres:
|
||||
|
||||
networks:
|
||||
web-network:
|
||||
driver: bridge
|
||||
internal:
|
||||
|
||||
Reference in New Issue
Block a user