@@ -21,7 +21,6 @@ x-api: &default-api
2121 - OPENSEARCH_HOSTS=${OPENSEARCH_HOSTS}
2222 volumes :
2323 - photos:/openimis-be/openIMIS/images/insurees
24- # - ./be.openimis.json:/openimis-be/openimis.json
2524 depends_on :
2625 db :
2726 condition : service_healthy
@@ -38,27 +37,16 @@ services:
3837 - OPENIMIS_CONF_JSON=${OPENIMIS_FE_CONF_JSON}
3938 - OPENSEARCH_BASIC_TOKEN=${OPENSEARCH_BASIC_TOKEN}
4039 networks :
41- proxy :
4240 openimis-net :
41+ ports :
42+ - ${HTTP_PORT:-80}:80
43+ - ${HTTPS_PORT:-443}:443
4344 depends_on :
4445 - backend
4546 volumes :
4647 - ./data/certbot/conf:/etc/letsencrypt
4748 - ./data/certbot/www:/var/www/certbot
48- # - ./fe.openimis.json:/app/openimis.json
4949 # comment the following line if you are using your own gateway
50- # - ./conf/nginx:/conf/
51- ports :
52- - ${HTTP_PORT:-80}:80
53- - ${HTTPS_PORT:-443}:443
54- labels :
55- - traefik.enable=true
56- - traefik.http.routers.${PROJECT_NAME}.rule=Host("${DOMAIN}")
57- - traefik.http.routers.${PROJECT_NAME}.entrypoints=websecure
58- - traefik.http.routers.${PROJECT_NAME}.tls=true
59- - traefik.docker.network=proxy
60- - traefik.http.services.${PROJECT_NAME}.loadbalancer.server.port=80
61-
6250 - ./conf/nginx:/conf/
6351 migrations :
6452 << : *default-api
@@ -71,13 +59,17 @@ services:
7159 depends_on :
7260 migrations :
7361 condition : service_completed_successfully
62+ redis :
63+ condition : service_healthy
7464 worker :
7565 << : *default-api
7666 command : worker
7767 restart : always
7868 depends_on :
7969 migrations :
8070 condition : service_completed_successfully
71+ redis :
72+ condition : service_healthy
8173 deploy :
8274 mode : replicated
8375 replicas : ${WORKER_REPLICAS:-3}
@@ -89,8 +81,6 @@ services:
8981networks :
9082 openimis-net :
9183 name : " ${PROJECT_NAME:-openimis}-net"
92- proxy :
93- external : true
9484volumes :
9585 database :
9686 photos :
0 commit comments