aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-10-15 20:26:13 +0200
committerGravatar Johannes Christ <[email protected]>2018-10-15 20:27:06 +0200
commitbceb24a1f060a241f36ea468a8a9d8657f052b93 (patch)
tree054e3f988f23ac2934c2a66834f1725dff05a9d0
parentBind Django development server to all interfaces. (diff)
Only listen on localhost.
-rw-r--r--docker-compose.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 95513d84..ee302d4e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -4,6 +4,9 @@
#
## Note
# This file is not intended to be used for production.
+# The "migrate and server" script will automatically apply migrations
+# and additionally use the Django development server which is
+# unsuitable for production.
version: "3.6"
services:
@@ -13,7 +16,7 @@ services:
dockerfile: docker/app/alpine/3.7/Dockerfile
command: docker/app/migrate_and_serve.sh
ports:
- - "8000:8000"
+ - "127.0.0.1:8000:8000"
depends_on:
- postgres
volumes: