Add Docker support with Dockerfile and docker-compose; implement entrypoint script for application startup

This commit is contained in:
Edgar P. Burkhart 2025-05-08 20:56:55 +02:00
parent 2c0e7b7699
commit b12f151b8d
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 30 additions and 3 deletions

23
compose.yaml Normal file
View file

@ -0,0 +1,23 @@
services:
nummi:
image: code.edgarpierre.fr/edpibu/nummi:main
container_name: nummi
restart: unless-stopped
ports:
- 33001:8000
volumes:
- /docker/nummi/config:/nummi
- /docker/nummi/static:/app/static
- /docker/nummi/media:/app/media
depends_on:
- postgres
postgres:
image: postgres:17-alpine
container_name: nummi_postgres
restart: unless-stopped
environment:
POSTGRES_USER: nummi
POSTGRES_PASSWORD:
volumes:
- /docker/nummi/postgres:/var/lib/postgresql/data