70dbf0b120
geändert: docker-compose.yml neue Datei: keys/ec_private.pem neue Datei: keys/ec_public.pem geändert: main.py geändert: requirements.txt
27 lines
611 B
YAML
27 lines
611 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: docker.io/library/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 |