initial django setup

This commit is contained in:
CDaut 2022-05-29 17:27:12 +02:00 committed by CDaut
commit c208f4adff
20 changed files with 599 additions and 0 deletions

25
docker-compose.yml Normal file
View file

@ -0,0 +1,25 @@
version: "3"
services:
web:
build: ./markdownblog
depends_on:
- db
volumes:
- ./markdownblog:/markdownblog
ports:
- "8000:8000"
env_file:
- envvars.env
command: python3 manage.py runserver 0.0.0.0:8000
db:
image: postgres:14.3-alpine
ports:
- "5432:5432"
env_file:
- envvars.env
volumes:
- ./db_scripts:/docker-entrypoint-initdb.d