Create the template for the Flask framework

This commit is contained in:
Charles Descamps 2025-06-03 16:50:03 -07:00
parent db65646400
commit c0f9876184
14 changed files with 266 additions and 0 deletions

27
docker-compose.yml Normal file
View file

@ -0,0 +1,27 @@
version: '3'
services:
web:
build: .
ports:
- "5000:5000"
environment:
- DATABASE_URL=postgresql://postgres:password@db:5432/repairdb
- FLASK_ENV=production
- SECRET_KEY=supersecret
depends_on:
- db
volumes:
- .:/app
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: repairdb
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: