From 5cb795944b56204baa635ff7ff42a3d619560dd6 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 13 Dec 2023 19:58:55 +0530 Subject: [PATCH] Add docker-compose.yml --- docker-compose.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..194c9bc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +version: '3' + +services: + dynamicweb2: + build: + context: . + ports: + - "8000:8000" + volumes: + - dynamicweb2_vol:/app + depends_on: + - db + env_file: + - .env + + nginx: + build: + context: ./nginx + ports: + - "80:80" + depends_on: + - dynamicweb2 + + db: + image: postgres:latest + environment: + POSTGRES_DB: app + POSTGRES_USER: app + POSTGRES_PASSWORD: uuiowmm3AS + volumes: + - postgres_data:/var/lib/postgresql/data + - postgres_socket:/var/run/postgresql + +volumes: + dynamicweb2_vol: + postgres_data: + postgres_socket: +