Deploy application in container using compose to bring up db

This commit is contained in:
2025-11-19 13:37:34 +01:00
parent d5befdd018
commit ae86a2e5fa
10 changed files with 230 additions and 10 deletions

View File

@@ -1,8 +1,5 @@
# Use postgres/example user/password credentials
version: '3.9'
services:
postgresql:
image: postgres:17.0
container_name: tech-postgresql
@@ -19,3 +16,20 @@ services:
POSTGRED_DB: techstorage
PGDATA: /var/lib/postgresql/data
flightslot:
image: flightslot:dev
container_name: tech-flightslot
restart: unless-stopped
ports:
- 8000:8000
depends_on:
- postgresql
environment:
- DJANGO_SETTINGS_MODULE=cntmanage.settings_prod
- SECRET_KEY=6WIjA!+mI+ZOWHaJm6v^8F4o,@-gliDtwkp*QFvpkFe"Oo0quq
- DB_NAME=techstorage
- DB_USER=tech
- DB_PASSWORD=tech
- DB_HOST=postgresql
- DB_PORT=5432