From: Stephen Finucane Date: Tue, 17 Apr 2018 09:32:13 +0000 (+0100) Subject: docker-compose: Remove 'links' section X-Git-Tag: v2.1.0-rc1~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1590c21d;p=thirdparty%2Fpatchwork.git docker-compose: Remove 'links' section This is no longer needed as the service name is also the host names in v2 syntax [1]. [1] https://docs.docker.com/compose/networking/ Signed-off-by: Stephen Finucane --- diff --git a/docker-compose-pg.yml b/docker-compose-pg.yml index e403547c..81e0fda5 100644 --- a/docker-compose-pg.yml +++ b/docker-compose-pg.yml @@ -6,6 +6,8 @@ services: - ./tools/docker/db/postdata:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=password + - PGUSER=postgres + - PGPASSWORD=password web: build: @@ -18,13 +20,8 @@ services: - .:/home/patchwork/patchwork/ ports: - "8000:8000" - # TODO(stephenfin): links are deprecated and should be replaced - # with user-defined networks - links: - - db environment: - UID - - PGPASSWORD=password - PW_TEST_DB_HOST=db - PW_TEST_DB_PORT=5432 - PW_TEST_DB_TYPE=postgres diff --git a/docker-compose.yml b/docker-compose.yml index 18d60b7b..46c86766 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,10 +20,6 @@ services: - .:/home/patchwork/patchwork/ ports: - "8000:8000" - # TODO(stephenfin): links are deprecated and should be replaced - # with user-defined networks - links: - - db environment: - UID - PW_TEST_DB_HOST=db