[keycloak-user] Help with docker compose

juanignacioborda at gmail.com juanignacioborda at gmail.com
Thu Nov 23 09:35:17 EST 2017


Hi there I'm having some issues setting up a docker-compose file
my file is as folows:

version: "3"

services:


 ###########################
 ##### Mysql server DB  ####
 ###########################
  mysql:
    image: mysql:5

    environment:
      MYSQL_ROOT_PASSWORD: developer
      MYSQL_DATABASE: keycloack
      MYSQL_USER: keycloak
      MYSQL_PASSWORD: developer

    volumes:
      - ./backups:/backups

###############################
##### KEYCLOAK server  ####
###############################
  server:
    image: jboss/keycloak
    depends_on:
      - mysql
    ports:
        - "9081:8080"

    environment:
      DB_VENDOR: MYSQL
      MYSQL_DATABASE: keycloak
      MYSQL_USERNAME: root
      MYSQL_PASSWORD: developer
      KEYCLOAK_USER: admin
      KEYCLOAK_PASSWORD: keycloak
      VIRTUAL_HOST: keycloack.lab

    links:
        - mysql:mysql


But server refuses to start and throw db cant connect errors
Any help would be very appreciated
Thanks!


More information about the keycloak-user mailing list