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

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

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