From 7da1bf79b807290423bb97262043a4f6e67403cb Mon Sep 17 00:00:00 2001 From: Shupeyko Nikita Date: Fri, 24 Mar 2017 20:45:31 +0300 Subject: [PATCH] Replace links section with depends_on in docker-compose config files (#1092) Closes #1091 --- {{cookiecutter.project_slug}}/dev.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/{{cookiecutter.project_slug}}/dev.yml b/{{cookiecutter.project_slug}}/dev.yml index 3eabb901..122dea44 100644 --- a/{{cookiecutter.project_slug}}/dev.yml +++ b/{{cookiecutter.project_slug}}/dev.yml @@ -19,7 +19,8 @@ services: dockerfile: ./compose/django/Dockerfile-dev command: /start-dev.sh depends_on: - - postgres + - postgres{% if cookiecutter.use_mailhog == 'y' %} + - mailhog{% endif %} environment: - POSTGRES_USER={{cookiecutter.project_slug}} - USE_DOCKER=yes @@ -27,11 +28,6 @@ services: - .:/app ports: - "8000:8000" - links: - - postgres -{% if cookiecutter.use_mailhog == 'y' %} - - mailhog -{% endif %} {% if cookiecutter.use_pycharm == 'y' %} pycharm: @@ -44,8 +40,6 @@ services: - POSTGRES_USER={{cookiecutter.project_slug}} volumes: - .:/app - links: - - postgres {% endif %} {% if cookiecutter.use_mailhog == 'y' %}