Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 1 | version: "3.7" |
| 2 | |
| 3 | services: |
| 4 | cps: |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 5 | container_name: cps-service |
Claudio David Gasparini | 5faa49c | 2020-11-12 08:28:07 +0100 | [diff] [blame] | 6 | image: nexus3.onap.org:10001/onap/cps-service:${VERSION} |
| 7 | ports: |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame^] | 8 | - "8881:8080" |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 9 | environment: |
| 10 | DB_HOST: ${DB_HOST} |
| 11 | DB_USERNAME: ${DB_USERNAME} |
| 12 | DB_PASSWORD: ${DB_PASSWORD} |
Claudio David Gasparini | 5faa49c | 2020-11-12 08:28:07 +0100 | [diff] [blame] | 13 | restart: unless-stopped |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 14 | depends_on: |
| 15 | - dbpostgresql |
| 16 | |
Ruslan Kashapov | 1e5bd94 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 17 | |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 18 | dbpostgresql: |
| 19 | container_name: dbpostgresql |
| 20 | image: postgres |
| 21 | ports: |
| 22 | - '5432:5432' |
| 23 | environment: |
Claudio David Gasparini | 5faa49c | 2020-11-12 08:28:07 +0100 | [diff] [blame] | 24 | POSTGRES_DB: cpsdb |
| 25 | POSTGRES_USER: ${DB_USERNAME} |
| 26 | POSTGRES_PASSWORD: ${DB_PASSWORD} |