From aa0987593e5fdde0a32586ded38dffe801b42efe Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 16 Apr 2023 12:15:39 +0200 Subject: [PATCH] change overleaf container names closes #23 --- .../overleaf/templates/docker-compose.yml.j2 | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ansible/roles/overleaf/templates/docker-compose.yml.j2 b/ansible/roles/overleaf/templates/docker-compose.yml.j2 index 20a3096..d4c9546 100644 --- a/ansible/roles/overleaf/templates/docker-compose.yml.j2 +++ b/ansible/roles/overleaf/templates/docker-compose.yml.j2 @@ -10,18 +10,18 @@ services: sharelatex: restart: always image: sharelatex/sharelatex - container_name: sharelatex + container_name: overleaf networks: - traefik - internal depends_on: - mongo: + overleaf-mongodb: condition: service_healthy - redis: + overleaf-redis: condition: service_started links: - - mongo - - redis + - overleaf-mongodb + - overleaf-redis stop_grace_period: 60s volumes: - {{ data_dir }}/overleaf/sharelatex_data:/var/lib/sharelatex @@ -37,12 +37,12 @@ services: environment: SHARELATEX_APP_NAME: Overleaf Community Edition - SHARELATEX_MONGO_URL: mongodb://mongo:27017/sharelatex + SHARELATEX_MONGO_URL: mongodb://overleaf-mongodb:27017/sharelatex # Same property, unfortunately with different names in # different locations - SHARELATEX_REDIS_HOST: redis - REDIS_HOST: redis + SHARELATEX_REDIS_HOST: overleaf-redis + REDIS_HOST: overleaf-redis ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_file' @@ -79,10 +79,10 @@ services: # SHARELATEX_EMAIL_SMTP_LOGGER: true # SHARELATEX_CUSTOM_EMAIL_FOOTER: "This system is run by department x" - mongo: + overleaf-mongodb: restart: always image: mongo:4.4 - container_name: mongo + container_name: overleaf-mongodb networks: - internal expose: @@ -95,10 +95,10 @@ services: timeout: 10s retries: 5 - redis: + overleaf-redis: restart: always image: redis:5 - container_name: redis + container_name: overleaf-redis networks: - internal expose: