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