-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-no-cm.yml
143 lines (130 loc) · 4.22 KB
/
docker-compose-no-cm.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3.9'
services:
cvmanager_api:
build:
context: services
dockerfile: Dockerfile.api
image: jpo_cvmanager_api:latest
restart: always
extra_hosts:
${WEBAPP_DOMAIN}: ${WEBAPP_HOST_IP}
${KEYCLOAK_DOMAIN}: ${KC_HOST_IP}
ports:
- '8081:5000'
environment:
PG_DB_HOST: ${PG_DB_HOST}
PG_DB_USER: ${PG_DB_USER}
PG_DB_PASS: ${PG_DB_PASS}
PG_DB_NAME: postgres
INSTANCE_CONNECTION_NAME: ${INSTANCE_CONNECTION_NAME}
MONGO_DB_URI: ${MONGO_DB_URI}
MONGO_DB_NAME: ${MONGO_DB_NAME}
COUNTS_MSG_TYPES: ${COUNTS_MSG_TYPES}
GEO_DB_NAME: ${GEO_DB_NAME}
SSM_DB_NAME: ${SSM_DB_NAME}
SRM_DB_NAME: ${SRM_DB_NAME}
MAX_GEO_QUERY_RECORDS: ${MAX_GEO_QUERY_RECORDS}
FIRMWARE_MANAGER_ENDPOINT: ${FIRMWARE_MANAGER_ENDPOINT}
WZDX_API_KEY: ${WZDX_API_KEY}
WZDX_ENDPOINT: ${WZDX_ENDPOINT}
CORS_DOMAIN: ${CORS_DOMAIN}
KEYCLOAK_ENDPOINT: http://${KEYCLOAK_DOMAIN}:8084/
KEYCLOAK_REALM: ${KEYCLOAK_REALM}
KEYCLOAK_API_CLIENT_ID: ${KEYCLOAK_API_CLIENT_ID}
KEYCLOAK_API_CLIENT_SECRET_KEY: ${KEYCLOAK_API_CLIENT_SECRET_KEY}
CSM_EMAIL_TO_SEND_FROM: ${CSM_EMAIL_TO_SEND_FROM}
CSM_EMAIL_APP_USERNAME: ${CSM_EMAIL_APP_USERNAME}
CSM_EMAIL_APP_PASSWORD: ${CSM_EMAIL_APP_PASSWORD}
CSM_EMAILS_TO_SEND_TO: ${CSM_EMAILS_TO_SEND_TO}
CSM_TARGET_SMTP_SERVER_ADDRESS: ${CSM_TARGET_SMTP_SERVER_ADDRESS}
CSM_TARGET_SMTP_SERVER_PORT: ${CSM_TARGET_SMTP_SERVER_PORT}
TIMEZONE: ${TIMEZONE}
LOGGING_LEVEL: ${API_LOGGING_LEVEL}
logging:
options:
max-size: '10m'
max-file: '5'
cvmanager_webapp:
build:
context: webapp
dockerfile: Dockerfile
args:
API_URI: http://${WEBAPP_DOMAIN}:8081
MAPBOX_TOKEN: ${MAPBOX_TOKEN}
KEYCLOAK_HOST_URL: http://${KEYCLOAK_DOMAIN}:8084/
COUNT_MESSAGE_TYPES: ${COUNTS_MSG_TYPES}
VIEWER_MESSAGE_TYPES: ${VIEWER_MSG_TYPES}
DOT_NAME: ${DOT_NAME}
MAPBOX_INIT_LATITUDE: ${MAPBOX_INIT_LATITUDE}
MAPBOX_INIT_LONGITUDE: ${MAPBOX_INIT_LONGITUDE}
MAPBOX_INIT_ZOOM: ${MAPBOX_INIT_ZOOM}
CVIZ_API_SERVER_URL: ${CVIZ_API_SERVER_URL}
CVIZ_API_WS_URL: ${CVIZ_API_WS_URL}
image: jpo_cvmanager_webapp:latest
restart: always
depends_on:
cvmanager_keycloak:
condition: service_healthy
extra_hosts:
${WEBAPP_DOMAIN}: ${WEBAPP_HOST_IP}
${KEYCLOAK_DOMAIN}: ${KC_HOST_IP}
ports:
- '80:80'
logging:
options:
max-size: '10m'
cvmanager_postgres:
image: postgis/postgis:15-master
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: ${PG_DB_USER}
POSTGRES_PASSWORD: ${PG_DB_PASS}
volumes:
- pgdb:/var/lib/postgresql/data
- ./resources/sql_scripts:/docker-entrypoint-initdb.d
logging:
options:
max-size: '10m'
cvmanager_keycloak:
build:
context: ./resources/keycloak
dockerfile: Dockerfile
args:
KEYCLOAK_LOGIN_THEME_NAME: ${KEYCLOAK_LOGIN_THEME_NAME}.jar
image: jpo_cvmanager_keycloak:latest
restart: always
depends_on:
- cvmanager_postgres
extra_hosts:
${WEBAPP_DOMAIN}: ${WEBAPP_HOST_IP}
${KEYCLOAK_DOMAIN}: ${KC_HOST_IP}
ports:
- '8084:8080'
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
WEBAPP_ORIGIN: http://${WEBAPP_DOMAIN}
WEBAPP_CM_ORIGIN: http://${WEBAPP_CM_DOMAIN}
KC_HEALTH_ENABLED: true
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://${PG_DB_HOST}/postgres?currentSchema=keycloak
KC_DB_USERNAME: ${PG_DB_USER}
KC_DB_PASSWORD: ${PG_DB_PASS}
KC_HOSTNAME: ${KEYCLOAK_DOMAIN}
KEYCLOAK_API_CLIENT_SECRET_KEY: ${KEYCLOAK_API_CLIENT_SECRET_KEY}
KEYCLOAK_CM_API_CLIENT_SECRET_KEY: ${KEYCLOAK_CM_API_CLIENT_SECRET_KEY}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
command:
- start-dev
- --log-level=${KC_LOGGING_LEVEL}
- --import-realm
- --spi-theme-welcome-theme=custom-welcome
logging:
options:
max-size: '10m'
volumes:
pgdb:
driver: local