summaryrefslogtreecommitdiffstats
path: root/docker-compose/docker-compose.yml
blob: beae091f1ba1935cf3d2c5d94ed9a700519fe037 (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
version: "3.7"

services:
  cps:
    container_name: cps-service
    image: nexus3.onap.org:10001/onap/cps-service:${VERSION}
    volumes:
      - "./application.yml:/app/application.yml"
    ports:
      - "8881:8080"
    environment:
      DB_HOST: ${DB_HOST}
      DB_USERNAME: ${DB_USERNAME}
      DB_PASSWORD: ${DB_PASSWORD}
    restart: unless-stopped
    depends_on:
      - dbpostgresql

  cps-nf-proxy:
    container_name: cps-nf-proxy
    image: nexus3.onap.org:10001/onap/cps-nf-proxy:${VERSION}
    volumes:
      - "./application.yml:/app/application.yml"
    ports:
      - "8882:8080"
    environment:
      DB_HOST: ${DB_HOST}
      DB_USERNAME: ${DB_USERNAME}
      DB_PASSWORD: ${DB_PASSWORD}
    restart: unless-stopped
    depends_on:
      - dbpostgresql

  cps-and-nf-proxy:
    container_name: cps-and-nf-proxy
    image: nexus3.onap.org:10001/onap/cps-and-nf-proxy:${VERSION}
    volumes:
      - "./application.yml:/app/application.yml"
    ports:
      - "8883:8080"
    environment:
      DB_HOST: ${DB_HOST}
      DB_USERNAME: ${DB_USERNAME}
      DB_PASSWORD: ${DB_PASSWORD}
    restart: unless-stopped
    depends_on:
      - dbpostgresql

  dbpostgresql:
    container_name: dbpostgresql
    image: postgres
    ports:
      - '5432:5432'
    environment:
      POSTGRES_DB: cpsdb
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_PASSWORD: ${DB_PASSWORD}