aboutsummaryrefslogtreecommitdiffstats
path: root/development/docker-compose.yml
blob: 6c6a0adc3587d90086fc4d67ea4e269cfe5de7db (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3'

volumes:
  postgres_data:
      driver: local

services:
  postgres:
    container_name: postgres-keycloak
    image: "${POSTGRES_IMAGE}:${POSTGRES_VERSION}"
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: ${KEYCLOAK_DB}
      POSTGRES_USER: ${KEYCLOAK_DB_USER}
      POSTGRES_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
  keycloak:
    container_name: keycloak-bff
    image: "${KEYCLOAK_IMAGE}:${KEYCLOAK_VERSION}"
    environment:
      DB_VENDOR: POSTGRES
      DB_ADDR: postgres-keycloak
      DB_DATABASE: ${KEYCLOAK_DB}
      DB_USER: ${KEYCLOAK_DB_USER}
      DB_SCHEMA: public
      DB_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
      KEYCLOAK_USER: ${KEYCLOAK_USER}
      KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
      KEYCLOAK_IMPORT: /config/onap-realm.json
    ports:
      - 8080:8080
    volumes:
      - ./config:/config
    depends_on:
      - postgres
  mongo-history:
    container_name: mongo-history
    image: "${MONGO_IMAGE}:${MONGO_VERSION}"
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${PORTALHISTORY_USERNAME}
      MONGO_INITDB_ROOT_PASSWORD: ${PORTALHISTORY_PASSWORD}
  portal-history:
    container_name: portal-history
    image: "${IMAGE_REPOSITORY}/${PORTAL_HISTORY_IMAGE_NAME}:${PORTAL_HISTORY_IMAGE_TAG}"
    ports:
      - 9002:9002
    environment:
      PORTALHISTORY_USERNAME: ${PORTALHISTORY_USERNAME}
      PORTALHISTORY_PASSWORD: ${PORTALHISTORY_PASSWORD}
      PORTALHISTORY_DATABASE: ${PORTALHISTORY_DATABASE}
      KEYCLOAK_URL: ${KEYCLOAK_URL}
      KEYCLOAK_REALM: ${KEYCLOAK_REALM}
      PORTALHISTORY_HOST: ${PORTALHISTORY_HOST}
      PORTALHISTORY_PORT: ${PORTALHISTORY_PORT}
    depends_on:
      - mongo-history
  mongo-prefs:
    container_name: mongo-prefs
    image: "${MONGO_IMAGE}:${MONGO_VERSION}"
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${PORTALPREFS_USERNAME}
      MONGO_INITDB_ROOT_PASSWORD: ${PORTALPREFS_PASSWORD}
  portal-prefs:
    container_name: portal-prefs
    image: "${IMAGE_REPOSITORY}/${PORTAL_PREFS_IMAGE_NAME}:${PORTAL_PREFS_IMAGE_TAG}"
    ports:
      - 9001:9001
    environment:
      PORTALPREFS_USERNAME: ${PORTALPREFS_USERNAME}
      PORTALPREFS_PASSWORD: ${PORTALPREFS_PASSWORD}
      PORTALPREFS_DATABASE: ${PORTALPREFS_DATABASE}
      KEYCLOAK_URL: ${KEYCLOAK_URL}
      KEYCLOAK_REALM: ${KEYCLOAK_REALM}
      PORTALPREFS_HOST: ${PORTALPREFS_HOST}
      PORTALPREFS_PORT: ${PORTALPREFS_PORT}
    depends_on:
      - mongo-prefs
  portal-bff:
    container_name: portal-bff
    image: "${IMAGE_REPOSITORY}/${PORTAL_BFF_IMAGE_NAME}:${PORTAL_BFF_IMAGE_TAG}"
    ports:
      - 9080:9080
    environment:
      KEYCLOAK_URL: ${KEYCLOAK_URL}
      KEYCLOAK_REALM: ${KEYCLOAK_REALM}
      KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID}
      KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET}
      PORTAL_SERVICE_URL: ${PORTAL_SERVICE_URL}
      PORTAL_PREFS_URL: ${PORTAL_PREFS_URL}
      PORTAL_HISTORY_URL: ${PORTAL_HISTORY_URL}