First commit

This commit is contained in:
2024-08-22 20:25:59 +01:00
commit 1b5d90122c
3 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
version: '3.7'
services:
web:
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/workspace
ports:
- "8000:8000"
depends_on:
- db
environment:
- DJANGO_SETTINGS_MODULE=bookings_app.settings
db:
image: postgres:13
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: