-
Notifications
You must be signed in to change notification settings - Fork 58
/
docker-compose.yml
61 lines (58 loc) · 1.72 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
version: '3.7'
volumes:
mysql_data:
driver: local
mongo_data:
notused:
networks:
backend:
services:
mysql:
container_name: codever-mysql
image: mysql:5.7
networks:
- backend
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: password
keycloak:
container_name: codever-keycloak
image: quay.io/keycloak/keycloak:16.1.1
networks:
- backend
environment:
DB_VENDOR: MYSQL
DB_ADDR: mysql
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
ports:
- 8480:8080
depends_on:
- mysql
#command: -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/tmp/keycloak/export-import
#command: -Dkeycloak.profile.feature.upload_scripts=enabled -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/tmp/keycloak/export-import -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
volumes:
- ./docker-compose-setup/keycloak-export-import:/tmp/keycloak/export-import/
- ./apps/codever-keycloak-theme/codever/:/opt/jboss/keycloak/themes/codever/
mongo:
image: mongo:3.4
container_name: codever-mongo
networks:
- backend
environment:
- MONGO_INITDB_DATABASE=dev-bookmarks
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
ports:
- 27017:27017
volumes:
- ./docker-compose-setup/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- mongo_data:/data/db