initial django setup
This commit is contained in:
commit
c208f4adff
20 changed files with 599 additions and 0 deletions
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue