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: |
| 8 | - "8080: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 | |
| 17 | dbpostgresql: |
| 18 | container_name: dbpostgresql |
| 19 | image: postgres |
| 20 | ports: |
| 21 | - '5432:5432' |
| 22 | environment: |
Claudio David Gasparini | 5faa49c | 2020-11-12 08:28:07 +0100 | [diff] [blame] | 23 | POSTGRES_DB: cpsdb |
| 24 | POSTGRES_USER: ${DB_USERNAME} |
| 25 | POSTGRES_PASSWORD: ${DB_PASSWORD} |