docker-compose.yml 933 Bytes
Newer Older
Tim's avatar
Tim committed
1
2
3
4
version: '3'

services:
  postgres:
Ozoux's avatar
Ozoux committed
5
    image: postgres
Ozoux's avatar
Ozoux committed
6
    volumes:
Tim's avatar
Tim committed
7
    - db:/var/lib/postgresql/data
Ozoux's avatar
Ozoux committed
8
9
10
11
    environment:
      POSTGRES_DB: keycloak
      POSTGRES_USER: keycloak
      POSTGRES_PASSWORD: password
Tim's avatar
Tim committed
12
  keycloak:
13
    build: ./
Ozoux's avatar
Ozoux committed
14
    volumes:
Hugo's avatar
Hugo committed
15
16
17
18
19
      - ./src/cfamederic:/opt/jboss/keycloak/themes/cfamederic
      - ./src/liiibre:/opt/jboss/keycloak/themes/liiibre
      - ./src/liiibrelite:/opt/jboss/keycloak/themes/liiibrelite
      - ./src/smart:/opt/jboss/keycloak/themes/smart
      - ./src/zwo:/opt/jboss/keycloak/themes/zwo
Ozoux's avatar
Ozoux committed
20
      - ./disable-theme-cache.cli:/opt/jboss/startup-scripts/disable-theme-cache.cli
Ozoux's avatar
Ozoux committed
21
22
23
24
25
26
27
28
29
30
31
32
33
    environment:
      DB_VENDOR: POSTGRES
      DB_ADDR: postgres
      DB_DATABASE: keycloak
      DB_USER: keycloak
      DB_SCHEMA: public
      DB_PASSWORD: password
      KEYCLOAK_USER: admin
      KEYCLOAK_PASSWORD: indiehosters
    ports:
    - 8080:8080
    depends_on:
    - postgres
Hugo's avatar
Hugo committed
34
35

volumes:
Tim's avatar
Tim committed
36
  db: