-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
108 lines (101 loc) · 2.82 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.4'
networks:
mynetwork:
name: mynetwork
attachable: true
services:
postgres:
container_name: idp-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-load-balancer:
container_name: nginxplus_load_balancer
build:
context: ./
dockerfile: ./docker/docker-files/nginxplus-load-balancer/Dockerfile
image: nginxplus-load-balancer
ports:
- 20000:20000
volumes:
- type: bind
source: ./services/nginxplus-load-balancer/nginx/conf.d
target: /etc/nginx/conf.d/
networks:
- mynetwork
depends_on:
- nginx_plus_oidc_cluster_01
nginx_plus_oidc_cluster_01:
container_name: nginxplus-oidc-cluster-01
build:
context: ./
dockerfile: ./docker/docker-files/nginxplus-oidc-clusters/Dockerfile
image: nginxplus_oidc_cluster
ports:
- 21000:20000
volumes:
- type: bind
source: ./
target: /etc/nginx/conf.d/
- type: bind
source: ./services/nginxplus-oidc-clusters/nginx/test/
target: /etc/nginx/test/
- type: bind
source: ./services/nginxplus-oidc-clusters/content
target: /usr/share/nginx/html/
depends_on:
- nginx_plus_oidc_cluster_02
networks:
- mynetwork
nginx_plus_oidc_cluster_02:
container_name: nginxplus-oidc-cluster-02
build:
context: ./
dockerfile: ./docker/docker-files/nginxplus-oidc-clusters/Dockerfile
image: nginxplus_oidc_cluster
ports:
- 22000:20000
volumes:
- type: bind
source: ./
target: /etc/nginx/conf.d/
- type: bind
source: ./services/nginxplus-oidc-clusters/nginx/test/
target: /etc/nginx/test/
- type: bind
source: ./services/nginxplus-oidc-clusters/content
target: /usr/share/nginx/html/
depends_on:
- keycloak
networks:
- mynetwork