-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (65 loc) · 1.72 KB
/
docker-compose.yaml
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
services:
gluns-spring:
container_name: gluns-spring-service
build:
context: .
dockerfile: Dockerfile
ports:
- "8083:8083"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://gluns-spring-mysql:3306/db_gluns-spring-service
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
KEYCLOAK_SERVER: http://keycloak
depends_on:
- gluns-spring-mysql
gluns-spring-mysql:
container_name: gluns-spring-mysql
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: db_gluns-spring-service
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
keycloak:
build:
context: ./keycloak
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_USER}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_PASSWORD}
KC_DB: ${KEYCLOAK_DB_VENDOR}
KC_DB_URL: jdbc:postgresql://keycloak_db/${POSTGRES_DB}
KC_DB_USERNAME: ${POSTGRES_USER}
KC_DB_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "8080:8080"
depends_on:
- keycloak_db
keycloak_db:
build:
context: ./keycloak_db
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
pgadmin4:
build:
context: ./database_client
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- 80:80
volumes:
- ./database_client/sessions:/var/lib/pgadmin
volumes:
postgres_data:
mysql-data: