-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 902 Bytes
/
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
version: '3'
services:
keycloak:
build: ./keycloak
container_name: keycloak
ports:
- 8080:8080
- 9990:9990
depends_on:
- mysql-keycloak
- mysql-myapp
links:
- mysql-keycloak:mysql-keycloak
- mysql-myapp:mysql-myapp
env_file:
- ./env/keycloak.env
mysql-keycloak:
build: ./mysql-keycloak
container_name: mysql-keycloak
ports:
- 13306:3306
volumes:
- /opt/volumes/mysql-keycloak:/var/lib/mysql
env_file:
- ./env/mysql-keycloak.env
mysql-myapp:
build: ./mysql-myapp
container_name: mysql-myapp
ports:
- 23306:3306
volumes:
- /opt/volumes/mysql-myapp:/var/lib/mysql
env_file:
- ./env/mysql-myapp.env