-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 2.12 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
version: '3.8'
volumes:
postgres_data:
services:
postgres:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
healthcheck:
test: [ "CMD", "psql", "-U", "postgres", "-c", "SELECT 1;" ]
interval: 1m
timeout: 10s
retries: 5
keycloak:
image: bitnami/keycloak:22.0.1-debian-11-r25
environment:
KEYCLOAK_EXTRA_ARGS: "-Dkeycloak.migration.action=import
-Dkeycloak.migration.realmName=annotto
-Dkeycloak.migration.provider=dir
-Dkeycloak.migration.dir=/opt/bitnami/keycloak/data/import
-Dkeycloak.migration.strategy=OVERWRITE_EXISTING
-Dkeycloak.migration.usersExportStrategy=SAME_FILE
-Dkeycloak.profile.feature.upload_scripts=enabled"
KEYCLOAK_ADMIN_USER: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KEYCLOAK_DATABASE_HOST: postgres
KEYCLOAK_DATABASE_PORT: 5432
KEYCLOAK_DATABASE_NAME: keycloak
KEYCLOAK_DATABASE_USER: keycloak
KEYCLOAK_DATABASE_PASSWORD: password
volumes:
# To pre-configured keycloak with data
- ./statics/keycloak:/opt/bitnami/keycloak/data/import
depends_on:
- postgres
restart: always
ports:
- "8080:8080"
# - 443:8443
minio:
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=supersecret
image: quay.io/minio/minio:latest
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./storage/minio:/data
restart: unless-stopped
mongo:
image: "mongo:4.4"
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
ports:
- "27017:27017"
healthcheck:
test: test $$(echo "rs.initiate().ok || rs.status().ok" | mongo --host mongo:27017 --quiet) -eq 1
interval: 10s
start_period: 30s