blob: a2241bcc23a1f1d87b1635c5e453df6babf33d2c [file] [log] [blame]
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +01001# ============LICENSE_START=======================================================
2# Copyright (c) 2020 Pantheon.tech.
3# Modifications Copyright (C) 2021 Bell Canada.
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16# ============LICENSE_END=========================================================
17
Claudio David Gasparini900ba022020-11-08 22:18:36 +010018version: "3.7"
19
20services:
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +010021 #cps-standalone:
22 # container_name: cps-service
Bruno Sakotof05a5032021-03-03 18:27:54 -050023 # image: cps-service:${VERSION}
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +010024 # volumes:
25 # - "./application.yml:/app/resources/application.yml"
26 # ports:
27 # - "8881:8080"
28 # environment:
29 # DB_HOST: ${DB_HOST}
30 # DB_USERNAME: ${DB_USERNAME}
31 # DB_PASSWORD: ${DB_PASSWORD}
32 # restart: unless-stopped
33 # depends_on:
34 # - dbpostgresql
Claudio David Gasparini900ba022020-11-08 22:18:36 +010035
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +010036 #nf-proxy-standalone:
37 # container_name: cps-nf-proxy
38 # image: cps-nf-proxy:${VERSION}
39 # volumes:
40 # - "./application.yml:/app/resources/application.yml"
41 # ports:
42 # - "8882:8080"
43 # environment:
44 # DB_HOST: ${DB_HOST}
45 # DB_USERNAME: ${DB_USERNAME}
46 # DB_PASSWORD: ${DB_PASSWORD}
47 # restart: unless-stopped
48 # depends_on:
49 # - dbpostgresql
Claudio D. Gasparinib1ccfce2021-02-04 09:33:28 +010050
51 cps-and-nf-proxy:
52 container_name: cps-and-nf-proxy
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +010053 image: cps-and-nf-proxy:${VERSION}
Claudio D. Gasparinib1ccfce2021-02-04 09:33:28 +010054 volumes:
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +010055 - "./application.yml:/app/resources/application.yml"
Claudio D. Gasparinib1ccfce2021-02-04 09:33:28 +010056 ports:
57 - "8883:8080"
58 environment:
59 DB_HOST: ${DB_HOST}
60 DB_USERNAME: ${DB_USERNAME}
61 DB_PASSWORD: ${DB_PASSWORD}
62 restart: unless-stopped
63 depends_on:
64 - dbpostgresql
Ruslan Kashapov1e5bd942021-01-22 12:53:01 +020065
Claudio David Gasparini900ba022020-11-08 22:18:36 +010066 dbpostgresql:
67 container_name: dbpostgresql
Claudio D. Gasparini4e07d482021-02-11 08:51:06 +010068 image: postgres:12.4-alpine
Claudio David Gasparini900ba022020-11-08 22:18:36 +010069 ports:
70 - '5432:5432'
71 environment:
Claudio David Gasparini5faa49c2020-11-12 08:28:07 +010072 POSTGRES_DB: cpsdb
73 POSTGRES_USER: ${DB_USERNAME}
74 POSTGRES_PASSWORD: ${DB_PASSWORD}