File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 11environments /db.env 
2+ environments /keycloak.env 
Original file line number Diff line number Diff line change 1- version : ' 1 ' 
1+ version : ' 3 ' 
22
33services :
44  keycloak-db :
@@ -8,10 +8,44 @@ services:
88    restart : unless-stopped 
99    env_file :
1010      - ./environments/db.env 
11+     environment :
12+       - POSTGRES_DB=postgres 
13+       - POSTGRES_USER=postgres 
14+       - KEYCLOAK_DB_NAME=keycloak 
15+       - KEYCLOAK_DB_USER=keycloak 
1116    volumes :
1217      - ' ./environments/db-init.sh:/docker-entrypoint-initdb.d/db-init.sh' 
1318      - ' postgres-data:/var/lib/postgresql/data' 
1419
20+   keycloak :
21+       image : quay.io/keycloak/keycloak:24.0.2 
22+       command : ['start', '--proxy-headers=forwarded'] 
23+       ports :
24+         - " 8282:8282"    #  as the HAproxy of BCF if configured to forward requests here
25+       restart : unless-stopped 
26+       depends_on :
27+         - keycloak-db 
28+       env_file :
29+         - ' ./environments/keycloak.env' 
30+       environment :
31+         - KEYCLOAK_ADMIN=admin 
32+         - KC_DB=postgres 
33+         - KC_DB_URL_HOST=keycloak-db 
34+         - KC_DB_URL_PORT=5432 
35+         - KC_DB_URL_DATABASE=keycloak 
36+         - KC_DB_USERNAME=keycloak 
37+         - KC_DB_SCHEMA=public 
38+         - KC_HTTP_HOST=0.0.0.0 
39+         - KC_HTTP_ENABLED=false 
40+         - KC_HTTP_PORT=8282 
41+         - KC_PROXY=edge 
42+         - KC_PROXY_ADDRESS_FORWARDING=true 
43+         - KC_HOSTNAME_URL=https://keycloak.jlab.bio/ 
44+         - KC_HOSTNAME_ADMIN_URL=https://keycloak.jlab.bio 
45+         - KC_LOG_LEVEL=WARN 
46+         - KC_HOSTNAME_DEBUG=true 
47+         - JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true" 
48+ 
1549volumes :
1650  postgres-data :
1751    name : keycloak-postgres-data 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments