From d6bef3a2318a1d6d59e77fdf74221bacbd357aec Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 5 Aug 2023 14:14:07 +0800 Subject: [PATCH] Improved docker compose file --- docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7f6f720..62c6133 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,8 @@ version: '3.9' services: - # Python app service - python_app: + # Django App + django_backend: build: context: . dockerfile: Dockerfile @@ -12,4 +12,8 @@ services: environment: - PYTHONBUFFERED=1 command: ["python", "stude/manage.py", "runserver"] + volumes: + - stude:/app +volumes: + stude: \ No newline at end of file