infrastructure/ansible/roles/renovate/files/docker-compose.yml
Jake Howard 1a74e05a7c
Create a dedicated machine for renovate
This way it can do what it wants with docker. Because apparently it's very picky about how it's setup
2022-01-01 22:59:13 +00:00

36 lines
933 B
YAML

version: "2.3"
services:
renovate:
image: renovate/renovate:31-slim
command: /entrypoint.sh
user: "{{ docker_user.id }}"
environment:
- TZ={{ TZ }}
- GITHUB_COM_TOKEN={{ renovate_github_token }}
- DOCKER_HOST=tcp://docker_proxy:2375
- LOG_LEVEL=debug # Noisy, but required for debugging
restart: unless-stopped
depends_on:
- redis
- docker_proxy
volumes:
- ./config.js:/usr/src/app/config.js:ro
- ./entrypoint.sh:/entrypoint.sh:ro
- /opt/renovate/renovate:/opt/renovate/renovate # These must be the same
redis:
image: redis:6-alpine
restart: unless-stopped
volumes:
- ./redis:/data
docker_proxy:
image: tecnativa/docker-socket-proxy:latest
restart: unless-stopped
environment:
- POST=1
- CONTAINERS=1
- INFO=1
- IMAGES=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro