aboutsummaryrefslogtreecommitdiffstats
path: root/development/docker-compose.yml
blob: 10946d4f4feebc669b55ec259aca5253d1d16444 (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
91
92
93
94
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
      POSTGRES_USER: keycloak
      POSTGRES_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
  keycloak:
    container_name: keycloak-bff
    image: "quay.io/keycloak/keycloak:18.0.2-legacy"
    environment:
      DB_VENDOR: POSTGRES
      DB_ADDR: postgres-keycloak
      DB_DATABASE: keycloak
      DB_USER: keycloak
      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: ${HISTORY_MONGO_USERNAME}
      MONGO_INITDB_ROOT_PASSWORD: ${HISTORY_MONGO_PASSWORD}
  history:
    container_name: history
    image: "${IMAGE_REPOSITORY}/${HISTORY_IMAGE_NAME}:${HISTORY_IMAGE_TAG}"
    ports:
      - 9002:9002
    environment:
      MONGO_USERNAME: ${HISTORY_MONGO_USERNAME}
      MONGO_PASSWORD: ${HISTORY_MONGO_PASSWORD}
      MONGO_DATABASE: ${HISTORY_MONGO_DATABASE}
      MONGO_HOST: ${HISTORY_MONGO_HOST}
      MONGO_PORT: ${HISTORY_MONGO_PORT}
      KEYCLOAK_URL: ${KEYCLOAK_URL}
      KEYCLOAK_REALM: ${KEYCLOAK_REALM}
      COLLECTOR_HOST: ${COLLECTOR_HOST}
      COLLECTOR_PORT: ${COLLECTOR_PORT}
    depends_on:
      - mongo-history
  mongo-preferences:
    container_name: mongo-preferences
    image: "${MONGO_IMAGE}:${MONGO_VERSION}"
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${PREFERENCES_MONGO_USERNAME}
      MONGO_INITDB_ROOT_PASSWORD: ${PREFERENCES_MONGO_PASSWORD}
  preferences:
    container_name: preferences
    image: "${IMAGE_REPOSITORY}/${PREFERENCES_IMAGE_NAME}:${PREFERENCES_IMAGE_TAG}"
    ports:
      - 9001:9001
    environment:
      MONGO_USERNAME: ${PREFERENCES_MONGO_USERNAME}
      MONGO_PASSWORD: ${PREFERENCES_MONGO_PASSWORD}
      MONGO_DATABASE: ${PREFERENCES_MONGO_DATABASE}
      MONGO_HOST: ${PREFERENCES_MONGO_HOST}
      MONGO_PORT: ${PREFERENCES_MONGO_PORT}
      KEYCLOAK_URL: ${KEYCLOAK_URL}
      KEYCLOAK_REALM: ${KEYCLOAK_REALM}
      COLLECTOR_HOST: ${COLLECTOR_HOST}
      COLLECTOR_PORT: ${COLLECTOR_PORT}
    depends_on:
      - mongo-preferences
  jaeger: 
    image: jaegertracing/all-in-one:latest
    container_name: jaeger
    ports:
      - 5775:5775/udp
      - 6831:6831/udp
      - 6832:6832/udp
      - 5778:5778
      - 16686:16686
      - 14268:14268
      - 9411:9411
    environment:
      COLLECTOR_ZIPKIN_HOST_PORT: 9411