aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-services-pmsh/testsuite/docker-compose.yml
blob: 4ea89dc4e5aa73bc21b0a19eee459db786542648 (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
version: '3.3'

services:
  mockserver:
    container_name: mockserver
    image: mockserver/mockserver:mockserver-5.9.0
    environment:
      MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
      MOCKSERVER_INITIALIZATION_JSON_PATH: /config/initializerJson.json
    volumes:
      - ./assets/mockserver.properties:/config/mockserver.properties
      - ./assets/initializerJson.json:/config/initializerJson.json
    networks:
      pmsh-network:

  db:
    container_name: db
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: $DB_PASSWORD
      POSTGRES_USER: $DB_USER
    networks:
      pmsh-network:

  pmsh:
    container_name: pmsh
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh
    depends_on:
      - db
    volumes:
      - ./assets/cert.pem:/opt/app/pmsh/etc/certs/cert.pem
      - ./assets/key.pem:/opt/app/pmsh/etc/certs/key.pem
    environment:
      HOSTNAME: "dcae-pmsh"
      CONFIG_BINDING_SERVICE_SERVICE_HOST: mockserver
      CONFIG_BINDING_SERVICE_SERVICE_PORT: 1080
      PMSH_PG_URL: db
      PMSH_PG_USERNAME: $DB_USER
      PMSH_PG_PASSWORD: $DB_PASSWORD
      AAI_SERVICE_HOST: mockserver
      AAI_SERVICE_PORT_AAI_SSL: 1080
    networks:
      pmsh-network:

networks:
  pmsh-network:
    driver: bridge