From 54e1e069256797d079a6b1661f57dfd0bdf19382 Mon Sep 17 00:00:00 2001 From: TUTOR03 Date: Sun, 29 Nov 2020 06:45:29 +0500 Subject: [PATCH] fix docker-compose --- .gitignore | 3 ++- docker-compose.yml | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index 23d25ed..57240b4 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ yarn-error.log* # vercel .vercel -.vscode/ \ No newline at end of file +.vscode/ +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5e06653 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3.7' +services: + web: + build: ./backend + command: gunicorn Ugra_hackaton.wsgi:application --bind 0.0.0.0:8005 + volumes: + - .:/usr/src/app/ + ports: + - 8005:8005 + env_file: + - ./.env + depends_on: + - db + db: + image: postgres:alpine + volumes: + - postgres_data:/var/lib/postgresql/data/ + env_file: + - ./.env +volumes: + postgres_data: \ No newline at end of file