7820854983960f8eb33ee10e04bc2a14a5f5f06b
[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     environment:
13       APP_VENDOR: ${APP_VENDOR}
14       APP_SOURCE: ${APP_SOURCE}
15       APP_NETWORK_FUNCTION_ID: ${APP_NETWORK_FUNCTION_ID}
16       SDN_CONTROLLER_PROTOCOL: https
17       SDN_CONTROLLER_HOST: controller.dcn.${SOLUTION_DOMAIN}
18       SDN_CONTROLLER_PORT: 443
19       SDN_CONTROLLER_USERNAME: ${ADMIN_USERNAME}
20       SDN_CONTROLLER_PASSWORD: ${ADMIN_PASSWORD}
21       VES_ENDPOINT_PROTOCOL: https
22       VES_ENDPOINT_HOST: ves-collector.dcn.${SOLUTION_DOMAIN}
23       VES_ENDPOINT_PORT: 443
24       VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
25       VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
26       VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
27       MESSAGES_PROTOCOL: https
28       MESSAGES_HOST: messages.${SOLUTION_DOMAIN}
29       MESSAGES_PORT: 443
30
31     labels:
32       traefik.enable: true
33       traefik.http.routers.flows.entrypoints: websecure
34       traefik.http.routers.flows.rule: Host(`flows.oam.${SOLUTION_DOMAIN}`)
35       traefik.http.routers.flows.tls: true
36       traefik.http.services.flows.loadbalancer.server.port: 1880
37     volumes:
38       - ./flows/data:/data
39     networks:
40       dmz:
41
42 networks:
43   dmz:
44     external: true