Files
backend_authentication/authentication/docker-compose.yml
T
jakob.scheid 94574e32ea new file: authentication/.env
new file:   authentication/Dockerfile
	new file:   authentication/Makefile
	new file:   authentication/__pycache__/main.cpython-313.pyc
	new file:   authentication/database-migration/Dockerfile
	new file:   authentication/database-migration/data.db
	new file:   authentication/database-migration/db_migration.py
	new file:   authentication/database-migration/migration.py
	new file:   authentication/database-migration/requirements.txt
	new file:   authentication/docker-compose.migration.yml
	new file:   authentication/docker-compose.yml
	new file:   authentication/main.py
	new file:   authentication/requirements.txt
2025-12-19 16:27:47 +01:00

27 lines
589 B
YAML

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