summaryrefslogtreecommitdiff
path: root/doc/source/examples/keycloak/docker-compose.yaml
blob: 9e70fec5fabd023e1958af6f5f8ff9e9bfd37678 (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
# 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: quay.io/keycloak/keycloak:18.0
    environment:
      - KEYCLOAK_ADMIN=admin
      - KEYCLOAK_ADMIN_PASSWORD=kcadmin
      - DB_VENDOR=h2
      - KC_HTTP_PORT=8082
    ports:
      - "8082:8082"
    volumes:
      - "./keycloak/:/opt/keycloak/data/import/:z"
    command:
      - start-dev
      - --import-realm
    networks:
      - zuul

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