Skip to content

Commit

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

services:
haproxy:
image: public.ecr.aws/medic/cht-haproxy:4.10.0
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-haproxy:4.1.0-alpha
restart: always
hostname: haproxy
environment:
Expand All @@ -11,23 +12,21 @@ 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: public.ecr.aws/medic/cht-haproxy-healthcheck:4.10.0
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-haproxy-healthcheck:4.1.0-alpha
restart: always
environment:
- "COUCHDB_SERVERS=${COUCHDB_SERVERS:-couchdb}"
Expand All @@ -42,18 +41,18 @@ services:
- cht-net

api:
image: public.ecr.aws/medic/cht-api:4.10.0
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-api:4.1.0-alpha
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 @@ -63,7 +62,7 @@ services:
- cht-net

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

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

Please sign in to comment.