version: '3.8' services: markdown-app: build: . container_name: markdown-renderer restart: unless-stopped ports: - "127.0.0.1:8080:8080" environment: - FLASK_ENV=production healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/').read()"] interval: 30s timeout: 3s retries: 3 start_period: 5s logging: driver: "json-file" options: max-size: "10m" max-file: "3"