title: How to link Keycloak docker image to MariaDB docker
body: <p>I have a Maria DB docker image for my application.</p>
  <p>I've now pulled Keycloak image. It is using the default h2. But I want to use my existing maria DB image</p>
  <p>The documentation is asking me to create network etc, but I am not sure how I do it in cloud. So looking for a configuration based solution i.e. change Keycloak image config to link to Maria DB image. I am not using docker compose, I only pulled image.</p>
  <p><a href="https://github.com/keycloak/keycloak-containers/blob/master/server/README.md#environment-variables" rel="nofollow noreferrer">https://github.com/keycloak/keycloak-containers/blob/master/server/README.md#environment-variables</a></p>
  <p>Not sure what is environment variables - are these inside keycloak image or on host machine?</p>
  <p>start command:  docker run -p 7080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin jboss/keycloak</p>
  <p>and I find it is highly unsecure. Is there a secure way?</p>
  <p><strong>Edit</strong>:
  I opened cli from docker dashboard, and typed</p>
  <blockquote>
  <p>env</p>
  </blockquote>
  <p>but do not know how can I add more env variables like</p>
  <blockquote>
  <pre><code>PROXY_ADDRESS_FORWARDING: 'true'
  # PostgreSQL DB settings
  DB_VENDOR: postgres
  DB_ADDR: 172.17.0.1
  DB_PORT: 5432
  DB_DATABASE: keycloak
  DB_SCHEMA: public
  DB_USER: keycloak
  DB_PWD: keycloak
  </code></pre>
  </blockquote>
  <p>(how to change PROXY_ADDRESS_FORWARDING=true from false ?)</p>