version: '3.8' services: gitea-bot: build: . image: gitea-bot:latest env_file: - .env ports: - "8000:8000" restart: unless-stopped healthcheck: test: [ "CMD-SHELL", "curl -f http://localhost:8000/ || exit 1" ] interval: 30s timeout: 10s retries: 3 poller: build: . image: gitea-bot:latest env_file: - .env command: [ "python", "-u", "-m", "gitea_bot.poller" ] restart: unless-stopped depends_on: - gitea-bot