Add docker-compose.yml

This commit is contained in:
PCoder 2023-12-13 19:58:55 +05:30
parent b7c3cf5f78
commit 5cb795944b

38
docker-compose.yml Normal file
View file

@ -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: