aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-07-12 07:22:34 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-07-12 07:22:34 +0400
commit149e67b44ad6264f7a0d566ba177d76a982a5e5c (patch)
tree03dd65c36ca6498561ba43fc906261c597208e05 /docker-compose.yml
parentMerge #722 - resources: add The Algorithms and remove Atom (diff)
Remove IP From Compose Ports
Specifying the port IP in compose seems to significantly slow down networking with postgres. This effect is epically noticeable in tests, which are 5-10x faster with the change. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index eb987624..a6f4fd18 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,12 +8,12 @@
# and additionally use the Django development server which is
# unsuitable for production.
-version: "3.6"
+version: "3.8"
services:
postgres:
image: postgres:13-alpine
ports:
- - "127.0.0.1:7777:5432"
+ - "7777:5432"
environment:
POSTGRES_DB: pysite
POSTGRES_PASSWORD: pysite
@@ -38,7 +38,7 @@ services:
- admin.web
- staff.web
ports:
- - "127.0.0.1:8000:8000"
+ - "8000:8000"
depends_on:
postgres:
condition: service_healthy