Merge "Update docker-compose"
[cps.git] / docker-compose / docker-compose.yml
1 # ============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
18 version: "3.7"
19
20 services:
21   #cps-standalone:
22   #  container_name: cps-service
23   #  image: ps-service:${VERSION}
24   #  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
35
36   #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
50
51   cps-and-nf-proxy:
52     container_name: cps-and-nf-proxy
53     image: cps-and-nf-proxy:${VERSION}
54     volumes:
55       - "./application.yml:/app/resources/application.yml"
56     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
65
66   dbpostgresql:
67     container_name: dbpostgresql
68     image: postgres:12.4-alpine
69     ports:
70       - '5432:5432'
71     environment:
72       POSTGRES_DB: cpsdb
73       POSTGRES_USER: ${DB_USERNAME}
74       POSTGRES_PASSWORD: ${DB_PASSWORD}