Add Kafka-bridge flows
[oam.git] / solution / smo / apps / docker-compose.yml
1 # no more versions needed! Compose spec supports all features w/o a version
2 services:
3
4   flows:
5     image: ${FLOWS_IMAGE}-configured
6     build:
7       context: ./flows
8       args:
9         - BASEIMAGE=${FLOWS_IMAGE}
10     container_name: flows
11     hostname: flows
12     extra_hosts:
13       - "flows.oam.${SOLUTION_DOMAIN}:${HOST_IP}"
14     environment:
15       APP_VENDOR: ${APP_VENDOR}
16       APP_SOURCE: ${APP_SOURCE}
17       APP_NETWORK_FUNCTION_ID: ${APP_NETWORK_FUNCTION_ID}
18       SDN_CONTROLLER_PROTOCOL: https
19       SDN_CONTROLLER_HOST: controller.dcn.${SOLUTION_DOMAIN}
20       SDN_CONTROLLER_PORT: 443
21       SDN_CONTROLLER_USERNAME: ${ADMIN_USERNAME}
22       SDN_CONTROLLER_PASSWORD: ${ADMIN_PASSWORD}
23       VES_ENDPOINT_PROTOCOL: https
24       VES_ENDPOINT_HOST: ves-collector.dcn.${SOLUTION_DOMAIN}
25       VES_ENDPOINT_PORT: 443
26       VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
27       VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
28       VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
29       MESSAGES_PROTOCOL: https
30       MESSAGES_HOST: messages.${SOLUTION_DOMAIN}
31       MESSAGES_PORT: 443
32       KAFKA_BRIDGE_PROTOCOL: https
33       KAFKA_BRIDGE_HOST: kafka-bridge.${SOLUTION_DOMAIN}
34       KAFKA_BRIDGE_PORT: 443
35       KAFKA_BRIDGE_CONSUMER_GROUP: app
36       KAFKA_BRIDGE_CONSUMER_NAME: message-consumer
37     labels:
38       traefik.enable: true
39       traefik.http.routers.flows.entrypoints: websecure
40       traefik.http.routers.flows.rule: Host(`flows.oam.${SOLUTION_DOMAIN}`)
41       traefik.http.routers.flows.tls: true
42       traefik.http.services.flows.loadbalancer.server.port: 1880
43     volumes:
44       - ./flows/data:/data
45     networks:
46       dmz:
47
48 networks:
49   dmz:
50     external: true