@@ -40,14 +40,20 @@ services:
4040 - SMTP_AUTH=true
4141 - SMTP_STARTTLS=true
4242 - ENABLE_LOG4J=${ENABLE_LOG4J:-false}
43- - API_GATEWAY_URL=https://api.crapi.io
43+ - API_GATEWAY_URL=https://api.mypremiumdealership.com
44+ - TLS_ENABLED=${TLS_ENABLED:-false}
45+ - TLS_KEYSTORE_TYPE=PKCS12
46+ - TLS_KEYSTORE=classpath:certs/server.p12
47+ - TLS_KEYSTORE_PASSWORD=passw0rd
48+ - TLS_KEY_PASSWORD=passw0rd
49+ - TLS_KEY_ALIAS=identity
4450 depends_on :
4551 postgresdb :
4652 condition : service_healthy
4753 mongodb :
4854 condition : service_healthy
4955 healthcheck :
50- test : curl 0.0.0.0:${IDENTITY_SERVER_PORT:-8080}/identity/health_check
56+ test : /app/health.sh
5157 interval : 15s
5258 timeout : 15s
5359 retries : 15
@@ -75,6 +81,9 @@ services:
7581 - MONGO_DB_USER=admin
7682 - MONGO_DB_PASSWORD=crapisecretpassword
7783 - MONGO_DB_NAME=crapi
84+ - TLS_ENABLED=${TLS_ENABLED:-false}
85+ - TLS_CERTIFICATE=certs/server.crt
86+ - TLS_KEY=certs/server.key
7887 depends_on :
7988 postgresdb :
8089 condition : service_healthy
@@ -83,7 +92,7 @@ services:
8392 crapi-identity :
8493 condition : service_healthy
8594 healthcheck :
86- test : curl 0.0.0.0:${COMMUNITY_SERVER_PORT:-8087}/community/home
95+ test : /app/health.sh
8796 interval : 15s
8897 timeout : 15s
8998 retries : 15
@@ -112,7 +121,10 @@ services:
112121 - MONGO_DB_PASSWORD=crapisecretpassword
113122 - MONGO_DB_NAME=crapi
114123 - SECRET_KEY=crapi
115- - API_GATEWAY_URL=https://api.crapi.io
124+ - API_GATEWAY_URL=https://api.mypremiumdealership.com
125+ - TLS_ENABLED=${TLS_ENABLED:-false}
126+ - TLS_CERTIFICATE=certs/server.crt
127+ - TLS_KEY=certs/server.key
116128 depends_on :
117129 postgresdb :
118130 condition : service_healthy
@@ -123,7 +135,7 @@ services:
123135 crapi-community :
124136 condition : service_healthy
125137 healthcheck :
126- test : curl 0.0.0.0:${WORKSHOP_SERVER_PORT:-8000}/workshop/health_check/
138+ test : /app/health.sh
127139 interval : 15s
128140 timeout : 15s
129141 retries : 15
@@ -138,10 +150,12 @@ services:
138150 image : crapi/crapi-web:${VERSION:-latest}
139151 ports :
140152 - " ${LISTEN_IP:-127.0.0.1}:8888:80"
153+ - " ${LISTEN_IP:-127.0.0.1}:8443:443"
141154 environment :
142155 - COMMUNITY_SERVICE=crapi-community:${COMMUNITY_SERVER_PORT:-8087}
143156 - IDENTITY_SERVICE=crapi-identity:${IDENTITY_SERVER_PORT:-8080}
144157 - WORKSHOP_SERVICE=crapi-workshop:${WORKSHOP_SERVER_PORT:-8000}
158+ - TLS_ENABLED=${TLS_ENABLED:-false}
145159 depends_on :
146160 crapi-community :
147161 condition : service_healthy
@@ -225,8 +239,8 @@ services:
225239 cpus : ' 0.3'
226240 memory : 128M
227241
228- api.crapi.io :
229- container_name : api.crapi.io
242+ api.mypremiumdealership.com :
243+ container_name : api.mypremiumdealership.com
230244 image : crapi/gateway-service:${VERSION:-latest}
231245 # ports:
232246 # - "${LISTEN_IP:-127.0.0.1}:8443:443" # https
@@ -235,6 +249,7 @@ services:
235249 interval : 15s
236250 timeout : 15s
237251 retries : 15
252+ start_period : 15s
238253 deploy :
239254 resources :
240255 limits :
0 commit comments