ci(docker): containerize application and add forgejo release workflow
Some checks failed
Build, Push, and Release / build-and-push (push) Failing after 28s
Build, Push, and Release / create-release (push) Has been skipped

This commit is contained in:
Tibo De Peuter 2026-08-18 18:30:56 +02:00
parent 148cdec986
commit bece8bd653
5 changed files with 145 additions and 0 deletions

27
docker-compose.yml Normal file
View file

@ -0,0 +1,27 @@
services:
phikipathia:
build:
context: .
dockerfile: Dockerfile
image: ${DOCKER_REGISTRY:-phikipathia}:${DOCKER_TAG:-latest}
container_name: phikipathia-app
restart: unless-stopped
ports:
- "${PORT:-8000}:8000"
environment:
- PORT=8000
- USER_AGENT=${USER_AGENT:-Phikipathia/1.0 (https://git.depeuter.dev/tdpeuter/2022ST-project-Phikipathia; tibo@depeuter.dev)}
healthcheck:
test: ["CMD-SHELL", "python -c 'import urllib.request; urllib.request.urlopen(\"http://localhost:8000/\")'"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M