-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
106 lines (105 loc) · 3.05 KB
/
docker-compose.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
##################################################################################
#
# Copyright (c) 2019. Ontario Institute for Cancer Research
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
##################################################################################
version: '3.2'
services:
api:
restart: always
build:
context: ./
dockerfile: Dockerfile
ports:
- "9080:50051"
environment:
SERVER_PORT: 8080
MANAGEMENT_SERVER_PORT: 8081
SPRING_BOOT_ADMIN_CLIENT_URL: "http://admin:8080"
SPRING_PROFILES: auth
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/program_db?stringtype=unspecified
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: password
SPRING_FLYWAY_ENABLED: "true"
SPRING_FLYWAY_LOCATIONS: "classpath:flyway/sql"
APP_EGOURL: "http://ego-api:8080"
APP_EGOCLIENTID: "program-service"
APP_EGOCLIENTSECRET: "program-service-secret"
APP_GRPCENABLED: "true"
APP_MAILENABLED: "true"
SPRING_MAIL_HOST: "mail-server"
SPRING_MAIL_PORT: 1025
expose:
- "50051"
depends_on:
- postgres
- ego-api
- mail-server
mail-server:
image: mailhog/mailhog:latest
expose:
- "8025"
- "1025"
ports:
- "9025:8025"
postgres:
image: postgres:9.5
environment:
- POSTGRES_DB=program_db
- POSTGRES_PASSWORD=password
expose:
- "5432"
ports:
- "9432:5432"
ego-api:
restart: always
image: "overture/ego:latest"
environment:
SERVER_PORT: 8080
SPRING_DATASOURCE_URL: jdbc:postgresql://ego-postgres:5432/ego?stringtype=unspecified
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: password
SPRING_FLYWAY_ENABLED: "true"
SPRING_FLYWAY_LOCATIONS: "classpath:flyway/sql,classpath:db/migration"
SPRING_PROFILES: demo, auth
#GOOGLE_CLIENT_CLIENTID:
expose:
- "8080"
ports:
- "9082:8080"
command: java -jar /srv/ego/install/ego.jar
depends_on:
- ego-postgres
ego-postgres:
image: postgres:9.5
environment:
- POSTGRES_DB=ego
- POSTGRES_PASSWORD=password
expose:
- "5432"
ports:
- "9444:5432"
admin:
image: "ghcr.io/icgc-argo/spring-boot-admin:49b90ca"
ports:
- "9081:8080"
expose:
- "8080"
environment:
SERVER_PORT: 8080
depends_on:
- api
- ego-api