-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
71 lines (65 loc) · 2.17 KB
/
docker-compose-dev.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
name: co2rechner-dev-environment
services:
web:
image: nginx
volumes:
- ./development/conf.d:/etc/nginx/conf.d
- ./development/nginx.conf:/etc/nginx/nginx.conf:ro
- nginx-config:/etc/nginx
ports:
- "8080:8080"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=8080
mongodb:
image: mongo
volumes:
- ./development/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./development/mongorestore.sh:/docker-entrypoint-initdb.d/mongorestore.sh:ro
- ./development/dump:/dump
- mongodata:/data/db
- mongoconfig:/data/configdb
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: admin
keycloak:
image: quay.io/keycloak/keycloak:21.0
volumes:
- ./development/co2Rechner-realm-export.json:/opt/keycloak/data/import/co2Rechner-realm-export.json
command:
- "-Djboss.socket.binding.port-offset=100"
- "-Dkeycloak.migration.action=import"
- "-Dkeycloak.migration.provider=singleFile"
- "-Dkeycloak.migration.strategy=OVERWRITE_EXISTING"
- "-Dkeycloak.migration.file=/opt/keycloak/data/import/co2Rechner-realm-export.json"
environment:
DB_VENDOR: POSTGRES
DB_ADDR: keycloak_db
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
PROXY_ADDRESS_FORWARDING: "true"
entrypoint: [ "/opt/keycloak/bin/kc.sh", "start --metrics-enabled true --proxy edge --hostname-path=/auth --hostname-admin-url=http://localhost:8080/auth --hostname-strict=false --http-port 8090 --db postgres --db-url=jdbc:postgresql://keycloak-db/keycloak --db-username keycloak --db-password password" ]
ports:
- "127.0.0.1:8090:8090"
depends_on:
- keycloak-db
keycloak-db:
image: postgres:14.4
volumes:
- keycloak-db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
volumes:
keycloak-db-data:
mongodata:
mongoconfig:
nginx-config: