Guest User

Untitled

a guest
Sep 17th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. version: '3'
  2.  
  3. volumes:
  4. postgres_data:
  5. driver: local
  6.  
  7. services:
  8. postgres:
  9. image: postgres
  10. volumes:
  11. - postgres_data:/var/lib/postgresql/data
  12. environment:
  13. POSTGRES_DB: keycloak
  14. POSTGRES_USER: keycloak
  15. POSTGRES_PASSWORD: password
  16. keycloak:
  17. image: jboss/keycloak
  18. environment:
  19. DB_VENDOR: POSTGRES
  20. DB_ADDR: postgres
  21. DB_DATABASE: keycloak
  22. DB_USER: keycloak
  23. DB_PASSWORD: password
  24. KEYCLOAK_USER: admin
  25. KEYCLOAK_PASSWORD: Pa55w0rd
  26. # Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
  27. #JDBC_PARAMS: "ssl=true"
  28. ports:
  29. - 8080:8080
  30. depends_on:
  31. - postgres
  32. keycloak2:
  33. image: jboss/keycloak
  34. environment:
  35. DB_VENDOR: POSTGRES
  36. DB_ADDR: postgres
  37. DB_DATABASE: keycloak
  38. DB_USER: keycloak
  39. DB_PASSWORD: password
  40. KEYCLOAK_USER: admin
  41. KEYCLOAK_PASSWORD: Pa55w0rd
  42. # Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
  43. #JDBC_PARAMS: "ssl=true"
  44. depends_on:
  45. - postgres
Add Comment
Please, Sign In to add comment