[keycloak-user] Help with docker compose

Steve Short Steve.Short at clearswift.com
Fri Nov 24 04:00:41 EST 2017


Your compose file worked fine for me as a version 1 compose file once I took out the version, service and depends-on.
What are the version of your docker-compose and docker?
Rgds
Steve



-----Original Message-----
From: keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces at lists.jboss.org] On Behalf Of juanignacioborda at gmail.com
Sent: 23 November 2017 14:35
To: keycloak-user at lists.jboss.org
Subject: [keycloak-user] Help with docker compose

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!
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user

This e-mail and any files transmitted with it are strictly confidential, may be privileged and are intended only for use by the addressee unless otherwise indicated.  If you are not the intended recipient any use, dissemination, printing or copying is strictly prohibited and may be unlawful.  If you have received this e-mail in error, please delete it immediately and contact the sender as soon as possible.  Clearswift cannot be held liable for delays in receipt of an email or any errors in its content. Clearswift accepts no responsibility once an e-mail and any attachments leave us. Unless expressly stated, opinions in this message are those of the individual sender and not of Clearswift.

This email message has been inspected by Clearswift for inappropriate content and security threats. 

To find out more about Clearswift’s solutions please visit www.clearswift.com



More information about the keycloak-user mailing list