Keycloak and authproxy
This commit is contained in:
parent
6a84c377fc
commit
2a56ec5c5f
9
docker/dockerfile-authproxy
Normal file
9
docker/dockerfile-authproxy
Normal file
@ -0,0 +1,9 @@
|
||||
FROM openresty/openresty:alpine-fat
|
||||
|
||||
RUN mkdir /var/log/nginx
|
||||
RUN apk add --no-cache openssl-dev
|
||||
RUN apk add --no-cache git
|
||||
RUN apk add --no-cache gcc
|
||||
RUN luarocks install lua-resty-openidc
|
||||
|
||||
ENTRYPOINT ["/usr/local/openresty/nginx/sbin/nginx", "-g", "daemon off;"]
|
||||
37
docker/keycloak.yml
Normal file
37
docker/keycloak.yml
Normal file
@ -0,0 +1,37 @@
|
||||
version: '3.5'
|
||||
|
||||
services:
|
||||
keycloak_postgres:
|
||||
hostname: keycloak-db
|
||||
restart: always
|
||||
image: postgres
|
||||
volumes:
|
||||
- ./keycloak_postgres_data:/var/lib/postgresql
|
||||
environment:
|
||||
POSTGRES_DB: keycloak
|
||||
POSTGRES_USER: keycloak
|
||||
POSTGRES_PASSWORD: password
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
keycloak:
|
||||
hostname: keycloak
|
||||
restart: always
|
||||
image: jboss/keycloak:6.0.1
|
||||
environment:
|
||||
POSTGRES_PORT_5432_TCP_ADDR: keycloak_postgres
|
||||
POSTGRES_DATABASE: keycloak
|
||||
POSTGRES_USER: keycloak
|
||||
POSTGRES_PASSWORD: password
|
||||
KEYCLOAK_USER: admin
|
||||
KEYCLOAK_PASSWORD: password
|
||||
PROXY_ADDRESS_FORWARDING: 'true'
|
||||
# volumes:
|
||||
# - ./keycloak_data/themes:/opt/jboss/keycloak/themes
|
||||
ports:
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
- keycloak_postgres
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
links:
|
||||
- keycloak_postgres
|
||||
Loading…
Reference in New Issue
Block a user