Skip to content

Commit cb3cb24

Browse files
pavankjaddaPavan Jadda
authored andcommitted
Add keycloak-mysql.yml docker compose file
1 parent 950eecb commit cb3cb24

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: '3'
2+
3+
volumes:
4+
mysql_data:
5+
driver: local
6+
7+
services:
8+
mysql:
9+
image: mysql:5.7
10+
volumes:
11+
- mysql_data:/var/lib/mysql
12+
environment:
13+
MYSQL_ROOT_PASSWORD: root
14+
MYSQL_DATABASE: keycloak
15+
MYSQL_USER: keycloak
16+
MYSQL_PASSWORD: password
17+
keycloak:
18+
image: jboss/keycloak
19+
environment:
20+
DB_VENDOR: MYSQL
21+
DB_ADDR: mysql
22+
DB_DATABASE: keycloak
23+
DB_USER: keycloak
24+
DB_PASSWORD: password
25+
KEYCLOAK_USER: admin
26+
KEYCLOAK_PASSWORD: Jadda@2017
27+
# 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.
28+
#JDBC_PARAMS: "connectTimeout=30000"
29+
ports:
30+
- 8080:8080
31+
depends_on:
32+
- mysql

0 commit comments

Comments
 (0)