generated from SocialGouv/dashlord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.5 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
version: '3.8'
services:
postgres:
image: postgres
env_file: .env
restart: 'always'
volumes:
- db_volume:/var/lib/postgresql/data
keycloak:
build: .
volumes:
- .:/buildpack
- cache:/cache
- build:/build
- env:/env
- app:/app
env_file: .env
depends_on:
- postgres
command: start-dev
ports:
- 8080:8080
wait-on-keycloak:
image: kosprov/wait-on:3.2.0
command: [ 'http://keycloak:8080' ]
# pour appliquer le terraform au KC local
provision-local:
build: ./config/terraform
user: root
command: [ 'make', 'apply-local' ]
env_file: ./config/vault/local.env
volumes:
- tfstate:/tfstate:delegated
# pour pouvoir créer le client TF dans KC (voir ensure-terraform-client.sh)
environment:
TFSTATE_PATH: /tfstate/terraform.tfstate
KEYCLOAK_URL: http://keycloak:8080
KEYCLOAK_ADMIN_USER: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KEYCLOAK_CLIENT_ID: terraform
KEYCLOAK_CLIENT_SECRET: 111ed886-126a-11e9-ab12-23b741c9418a
TF_VAR_restrict_valid_redirect_uris: "false"
JAVA_OPTS_APPEND: "-Dkeycloak.profile.feature.token_exchange=enabled -Dkeycloak.profile.feature.admin_fine_grained_authz=enabled"
volumes:
db_volume:
cache:
build:
env:
app:
tfstate: