summaryrefslogtreecommitdiff
path: root/docker-compose-pg.yml
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-04-17 10:32:13 +0100
committerStephen Finucane <stephen@that.guru>2018-04-26 10:47:02 +0100
commit1590c21d07bc679c54975fa33f409b976896cc37 (patch)
treec34818da40e84b27b3c4f11407c2a495025f007d /docker-compose-pg.yml
parent98abeada054c4573bba9dcb20091df21304a598e (diff)
downloadpatchwork-1590c21d07bc679c54975fa33f409b976896cc37.tar
patchwork-1590c21d07bc679c54975fa33f409b976896cc37.tar.gz
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 <stephen@that.guru>
Diffstat (limited to 'docker-compose-pg.yml')
-rw-r--r--docker-compose-pg.yml7
1 files changed, 2 insertions, 5 deletions
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