This repository has been archived on 2026-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2022ST-project-Phikipathia/docker-compose.yml
Tibo De Peuter a3fd5f212e
Some checks failed
Build, Push, and Release / build-and-push (push) Failing after 1m57s
Build, Push, and Release / create-release (push) Has been skipped
ci(docker): containerize application and add forgejo release workflow
2026-08-18 18:22:00 +02:00

27 lines
787 B
YAML

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