-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-without-ssl.yml
100 lines (100 loc) · 3.07 KB
/
docker-compose-without-ssl.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
version: "3.2"
# ----------------------------------------------------------------------------
# NETWORKS
# ----------------------------------------------------------------------------
networks:
backend:
driver: "bridge"
services:
# ----------------------------------------------------------------------------
# NGINX AND CERTBOT
# Nginx and certbot for ssl termination
# ----------------------------------------------------------------------------
nginx:
container_name: nginx
image: nginx:1.15-alpine
restart: unless-stopped
depends_on:
- redis
- mysql
- keycloak
ports:
- 127.0.0.1:81:80
- 127.0.0.1:453:443
networks:
- backend
# volumes:
# - ./data/nginx/html:/usr/share/nginx/html
# - ./data/nginx:/etc/nginx/conf.d
# ----------------------------------------------------------------------------
# KEYCLOCK
# Adding keycloack
# ----------------------------------------------------------------------------
keycloak:
container_name: keycloak
hostname: keycloak
image: jboss/keycloak:6.0.1
restart: unless-stopped
depends_on:
- mysql
ports:
- "127.0.0.1:8180:8080"
environment:
PROXY_ADDRESS_FORWARDING: 'true'
DB_VENDOR: MYSQL
DB_ADDR: mysql
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: keycloak
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
# 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 MySQL JDBC driver documentation in order to use it.
# JDBC_PARAMS: "connectTimeout=30000"
networks:
- backend
volumes:
- type: bind
source: ./data/keycloak/themes/example/adminlte
target: /opt/jboss/keycloak/themes/adminlte
# ----------------------------------------------------------------------------
# MYSQL
# Uses mariadb instance
# ----------------------------------------------------------------------------
mysql:
container_name: mariadb # Todo: Change to mysql when testing is complete
hostname: mysql
build: ./mariadb
restart: unless-stopped
ports:
- 127.0.0.1:3406:3306
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: keycloak
networks:
- backend
volumes:
- mysql-volume:/var/lib/mysql
# ----------------------------------------------------------------------------
# REDIS
# ----------------------------------------------------------------------------
redis:
container_name: redis
image: redis
restart: unless-stopped
ports:
- 127.0.0.1:6000:6379
networks:
- backend
volumes:
- redis-volume:/data
# ----------------------------------------------------------------------------
# VOLUMES
volumes:
mysql-volume:
nodered-volume:
redis-volume:
# ----------------------------------------------------------------------------