forked from jinnerbichler/keycloak-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 792 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3'
services:
nginx:
image: nginx:1.15.1
container_name: nginx
restart: on-failure
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "8080:8080"
keycloak:
build: .
restart: on-failure
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=password
- DB_VENDOR=postgres
- DB_USER=admin
- DB_PASSWORD=password
- DB_ADDR=keycloak-db
- DB_PORT=5432
- DB_DATABASE=keycloakdb
- PROXY_ADDRESS_FORWARDING=true
depends_on:
- keycloak-db
keycloak-db:
image: postgres:10
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: keycloakdb
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: