-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (87 loc) · 2.25 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
version: '3.8'
networks:
private:
external:
name: private
web:
external:
name: web
volumes:
mysql-data:
postgres_data:
driver: local
services:
#---------------------
# mysql database
#---------------------
mysql:
container_name: mysql
image: mysql:latest
ports:
- 3306:3306 #VM:Containter
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
#MYSQL_DATABASE: ${MYSQL_DATABASE}
networks:
- private
volumes:
- $PWD/data/sql/sql-backup/:/backup/
- $PWD/init.sql:/docker-entrypoint-initdb/init.sql
command: --character-set-server=utf8 --collation-server=utf8_general_ci
# #---------------------
# # phpmyadmin
# #---------------------
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
depends_on:
- mysql
environment:
MYSQL_USERNAME: ${MYSQL_USERNAME}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
PMA_HOST: mysql
labels:
- traefik.enable=true
- "traefik.http.routers.pma.entrypoints=websecure"
- traefik.http.routers.pma.rule=Host(`pma.dsp4-5archio19-ah-je-gh-yb.fr`)
- "traefik.http.routers.pma.tls.certresolver=lets-encr"
networks:
- private
- web
keycloak-db:
image: postgres
container_name: keycloak-db
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: pwd
networks:
- private
- web
keycloak:
image: jboss/keycloak:13.0.1
container_name: keycloak
environment:
DB_VENDOR: POSTGRES
DB_ADDR: keycloak-db
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: pwd
KEYCLOAK_USER: keycloak
KEYCLOAK_PASSWORD: pwd
PROXY_ADDRESS_FORWARDING: "true"
ports:
- 8081:8080
depends_on:
- keycloak-db
networks:
- private
- web
labels:
- traefik.enable=true
- "traefik.http.routers.keycloak.entrypoints=websecure"
- traefik.http.routers.keycloak.rule=Host(`key.dsp4-5archio19-ah-je-gh-yb.fr`)
- "traefik.http.routers.keycloak.tls.certresolver=lets-encr"
- traefik.http.routers.keycloak.middlewares=corsheaders