docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:11.0.3
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:18.0.2 start-dev
version: '3.1'
services:
keycloak:
image: quay.io/keycloak/keycloak:15.0.1
ports:
- '8080:8080'
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
version: "3"
services:
#=================================
# AUTH SERVICES ENVIRONMENT
#=================================
auth:
image: jboss/keycloak:latest
environment:
- KEYCLOAK_USER='admin'
- KEYCLOAK_PASSWORD='admin'
- KC_DB='postgres'
- KC_DB_URL='jdbc:postgresql://localhost/postgres'
- KC_DB_USERNAME='admin123'
- KC_DB_PASSWORD='admin123'
ports:
- 8080:8080
depends_on:
- database
networks:
- go_networks
#=================================
# DATABASE SERVICES ENVIRONMENT
#=================================
database:
image: postgres:14-alpine
environment:
- POSTGRES_DB='postgres'
- POSTGRES_USER='admin123'
- POSTGRES_PASSWORD='admin123'
ports:
- 5432:5432
volumes:
- database:/var/lib/postgres/data
networks:
- go_networks
#=================================
# VOLUME PERSISTENT DATA
#=================================
volumes:
database:
#=================================
# NETWORK SHARING GROUP
#=================================
networks:
go_networks:
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:19.0.1 start-dev
version: "3"
services:
keycloak:
image: quay.io/keycloak/keycloak:legacy
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- DB_VENDOR=POSTGRES
- DB_ADDR=pg
- DB_PORT=5432
- DB_USER=admin123
- DB_PASSWORD=admin123
- JDBC_PARAMS=ssl=false
ports:
- 8080:8080
depends_on:
- pg
networks:
- keycloak_network
pg:
image: postgres:14-alpine
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=admin123
- POSTGRES_PASSWORD=admin123
ports:
- 5432:5432
volumes:
- pg:/var/lib/postgres
networks:
- keycloak_network
volumes:
pg:
networks:
keycloak_network: