-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·68 lines (63 loc) · 1.75 KB
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.4'
networks:
mynetwork:
name: mynetwork
attachable: true
services:
postgres:
container_name: idp-keycloak-db
image: postgres:12.0
# volumes:
# - type: bind
# source: ./docker/build-context/data
# target: /var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
ports:
- 5432:5432
networks:
- mynetwork
keycloak:
container_name: idp-keycloak
image: jboss/keycloak:15.1.0
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: password
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 8080:8080
depends_on:
- postgres
networks:
- mynetwork
nginxplus_oidc_keycloak_ubuntu18.04:
container_name: nginxplus-oidc-keycloak
build:
context: ./
dockerfile: ./docker/docker-files/nginxplus-ubuntu18.04/Dockerfile
image: nginxplus_oidc_keycloak_ubuntu18.04
ports:
- 8010:8010
volumes:
- type: bind
source: ./
target: /etc/nginx/conf.d/
- type: bind
source: ./docker/build-context/nginx/sample/
target: /etc/nginx/sample/
- type: bind
source: ./docker/build-context/content
target: /usr/share/nginx/html/
depends_on:
- keycloak
networks:
- mynetwork