Added Docker

This commit is contained in:
ayxan
2022-10-01 17:55:04 +04:00
parent ad04604b6c
commit e613fe1874
7 changed files with 46 additions and 6 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: "3.9"
services:
db:
image: postgres
volumes:
- dbdata:/var/lib/postgresql/data
env_file:
- config/db/databasepostgresql_env
django:
build: .
command: python3 src/manage.py runserver 0.0.0.0:8000 --settings=config.settings.production
ports:
- "8000:8000"
depends_on:
- db
volumes:
dbdata: