new file: Dockerfile

new file:   Makefile
	new file:   database-migration/Dockerfile
	new file:   database-migration/data.db
	new file:   database-migration/db_migration.py
	new file:   database-migration/migration.py
	new file:   database-migration/requirements.txt
	new file:   docker-compose.migration.yml
	new file:   docker-compose.yml
	new file:   main.py
	new file:   requirements.txt
This commit is contained in:
2025-12-19 16:38:02 +01:00
parent 5f185c0376
commit b3213ab863
11 changed files with 216 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
version: "3.9"
services:
app:
build: .
image: python:3.11-slim
working_dir: /app
volumes:
- .:/app
command: python3 main.py
ports:
- "1234:1234"
depends_on:
- db
environment:
- DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
env_file:
- .env
db:
image: postgres:15
environment:
- DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
env_file:
- .env
volumes:
- /srv/data/db/services/authentication:/var/lib/postgresql/data