summaryrefslogtreecommitdiff
path: root/doc/source/examples/keycloak/docker-compose.yaml
blob: 917c502312b904b9867764d52a13d01ed6f5a51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Start the quickstart tutorial with `docker-compose -p zuul-tutorial
# up` (as directed in the instructions) in order for the network to
# have the expected name so that it can be shared with keycloak.

# Version 2.1 is required to specify the network name
version: '2.1'

services:
  keycloak:
    image: docker.io/jboss/keycloak
    environment:
      - KEYCLOAK_USER=admin
      - KEYCLOAK_PASSWORD=kcadmin
      - DB_VENDOR=h2
      - KEYCLOAK_IMPORT=/var/keycloak_import/zuul-demo-data.json
      - JAVA_OPTS_APPEND="-Djboss.socket.binding.port-offset=2"
    ports:
      - "8082:8082"
    volumes:
      - "./keycloak/:/var/keycloak_import/:z"
    entrypoint: |
      /bin/sh -c '\
      /opt/jboss/tools/docker-entrypoint.sh -b 0.0.0.0'
    command: []
    networks:
      - zuul

networks:
  zuul:
    external: true
    name: zuul-tutorial_zuul