From 1590c21d07bc679c54975fa33f409b976896cc37 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 17 Apr 2018 10:32:13 +0100 Subject: 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 --- docker-compose-pg.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'docker-compose-pg.yml') diff --git a/docker-compose-pg.yml b/docker-compose-pg.yml index e403547..81e0fda 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 -- cgit v1.2.3