Skip to content

Commit

Permalink
fix(#136): testing pipeline again
Browse files Browse the repository at this point in the history
  • Loading branch information
witash committed Oct 23, 2024
1 parent 586ab72 commit ee8016a
Showing 1 changed file with 52 additions and 13 deletions.
65 changes: 52 additions & 13 deletions docker/docker-compose.cht-core.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: '3.9'

services:
haproxy:
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-haproxy:4.1.0-alpha
image: public.ecr.aws/medic/cht-haproxy:4.10.0
restart: always
hostname: haproxy
environment:
Expand All @@ -12,21 +11,23 @@ services:
- "COUCHDB_SERVERS=${COUCHDB_SERVERS:-couchdb}"
- "HAPROXY_PORT=${HAPROXY_PORT:-5984}"
- "HEALTHCHECK_ADDR=${HEALTHCHECK_ADDR:-healthcheck}"
- "DOCKER_DNS_RESOLVER=true"
logging:
driver: "local"
options:
max-size: "${LOG_MAX_SIZE:-50m}"
max-file: "${LOG_MAX_FILES:-20}"
networks:
- cht-net
deploy:
resources:
limits:
memory: 1G
expose:
- ${HAPROXY_PORT:-5984}
ports:
- "5984:5984"


healthcheck:
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-haproxy-healthcheck:4.1.0-alpha
image: public.ecr.aws/medic/cht-haproxy-healthcheck:4.10.0
restart: always
environment:
- "COUCHDB_SERVERS=${COUCHDB_SERVERS:-couchdb}"
Expand All @@ -41,18 +42,18 @@ services:
- cht-net

api:
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-api:4.1.0-alpha
image: public.ecr.aws/medic/cht-api:4.10.0
restart: always
depends_on:
- haproxy
expose:
- "${API_PORT:-5988}"
ports:
- "5988:5988"
environment:
- COUCH_URL=http://${COUCHDB_USER:-admin}:${COUCHDB_PASSWORD:-password}@haproxy:${HAPROXY_PORT:-5984}/medic
- BUILDS_URL=${MARKET_URL_READ:-https://staging.dev.medicmobile.org}/${BUILDS_SERVER:-_couch/builds_4}
- UPGRADE_SERVICE_URL=${UPGRADE_SERVICE_URL:-http://localhost:5100}
ports:
- "5988:5988"
logging:
driver: "local"
options:
Expand All @@ -62,7 +63,7 @@ services:
- cht-net

sentinel:
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-sentinel:4.1.0-alpha
image: public.ecr.aws/medic/cht-sentinel:4.10.0
restart: always
depends_on:
- haproxy
Expand All @@ -78,14 +79,14 @@ services:
- cht-net

nginx:
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-nginx:4.1.0-alpha
image: public.ecr.aws/medic/cht-nginx:4.10.0
restart: always
depends_on:
- api
- haproxy
ports:
- "${NGINX_HTTP_PORT:-80}:80"
- "${NGINX_HTTPS_PORT:-443}:443"
- "${NGINX_HTTP_PORT:-8880}:80"
- "${NGINX_HTTPS_PORT:-8843}:443"
volumes:
- cht-ssl:${SSL_VOLUME_MOUNT_PATH:-/etc/nginx/private/}
environment:
Expand All @@ -109,9 +110,47 @@ services:
networks:
- cht-net

cht-configurator:
build:
context: ../cht-config
dockerfile: ./Dockerfile
environment:
- "COUCHDB_USER=${COUCHDB_USER:-admin}"
- "COUCHDB_PASSWORD=${COUCHDB_PASSWORD:-password}"
depends_on:
- couchdb
- api
networks:
- cht-net


couchdb:
image: public.ecr.aws/medic/cht-couchdb:4.10.0
volumes:
- couchdb-data:/opt/couchdb/data
- cht-credentials:/opt/couchdb/etc/local.d/
environment:
- "COUCHDB_USER=${COUCHDB_USER:-admin}"
- "COUCHDB_PASSWORD=${COUCHDB_PASSWORD:-password}"
- "COUCHDB_SECRET=${COUCHDB_SECRET:-secret}"
- "COUCHDB_UUID=${COUCHDB_UUID:-secret}"
- "SVC_NAME=${SVC_NAME:-couchdb}"
- "COUCHDB_LOG_LEVEL=${COUCHDB_LOG_LEVEL:-error}"
restart: always
logging:
driver: "local"
options:
max-size: "${LOG_MAX_SIZE:-50m}"
max-file: "${LOG_MAX_FILES:-20}"
networks:
- cht-net


networks:
cht-net:
name: ${CHT_NETWORK:-cht-net}

volumes:
cht-ssl:
cht-credentials:
couchdb-data:

0 comments on commit ee8016a

Please sign in to comment.