add to dokcer compose yaml the keycloak service and DB
This commit is contained in:
@@ -88,13 +88,43 @@ services:
|
|||||||
- STAGING=0
|
- STAGING=0
|
||||||
restart: unless-stopped
|
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:
|
volumes:
|
||||||
api:
|
api:
|
||||||
postgres-db:
|
postgres-db:
|
||||||
goose:
|
goose:
|
||||||
certbot_data:
|
certbot_data:
|
||||||
certbot_www:
|
certbot_www:
|
||||||
|
keycloak-postgres:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web-network:
|
web-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
internal:
|
||||||
|
|||||||
Reference in New Issue
Block a user