aboutsummaryrefslogtreecommitdiffstats
path: root/sanitycheck/vesclient-secured/certman/docker-compose.yml
blob: 27147519c493e469f0f1611323e2c2378f372032 (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
version: '3'

networks:
  tls-init-network:

volumes:
  certs-volume:

services:
  certs-init:
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
    extra_hosts:
      #set worker IP with access to AAF
      aaf-locate.onap: <WORKER_IP> #for example 10.183.35.177
      aaf-cm.onap: <WORKER_IP> #for example 10.183.35.177
      aaf-service.onap: <WORKER_IP> #for example 10.183.35.177
    environment:
      - aaf_locate_url=https://aaf-locate.onap:31111
      - aaf_url_cm=https://aaf-cm.onap:31114
      - aaf_url=https://aaf-service.onap:31110
    networks:
      - tls-init-network
    volumes:
      - certs-volume:/opt/app/osaaf
  mongo:
    image: mongo
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: zXcVbN123!
      MONGO_INITDB_DATABASE: pnf_simulator
    networks:
      - tls-init-network
    volumes:
      - ../../../../ves-client/db:/docker-entrypoint-initdb.d
    ports:
      - "27017:27017"

  mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
    networks:
      - tls-init-network
    environment:
      ME_CONFIG_MONGODB_ADMINUSERNAME: root
      ME_CONFIG_MONGODB_ADMINPASSWORD: zXcVbN123!

  ves-client:
    image: onap/org.onap.integration.nfsimulator.vesclient
    ports:
      - "5000:5000"
    command: bash -c "
      while [[ $$(ls -1 /app/store | wc -l) != '10' ]]; do echo 'Waiting for certs...'; sleep 3; done
      && java -Dspring.config.location=file:/app/application.properties -cp /app/libs/*:/app/vesclient.jar org.onap.integration.simulators.nfsimulator.vesclient.Main
      "
    volumes:
      - ../../../../ves-client/logs:/var/log
      - ../../../../ves-client/templates:/app/templates
      - ../../../../ves-client/src/main/resources/application.properties:/app/application.properties
      - certs-volume:/app/store
    networks:
      - tls-init-network
    restart: on-failure
    depends_on:
      - certs-init
      - mongo
      - mongo-express