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
This commit is contained in:
Jake Howard
2022-01-01 22:58:03 +00:00
parent 78b0161585
commit 1a74e05a7c
6 changed files with 34 additions and 10 deletions

View File

@ -7,5 +7,9 @@ module.exports = {
onboarding: false,
redisUrl: 'redis://redis',
repositoryCache: 'enabled',
persistRepoData: true
persistRepoData: true,
binarySource: "docker",
dockerUser: "{{ docker_user.id }}",
baseDir: "/opt/renovate/renovate",
cacheDir: "/opt/renovate/renovate/cache"
};

View File

@ -2,22 +2,35 @@ version: "2.3"
services:
renovate:
image: renovate/renovate:31-slim
user: "{{ docker_user.id }}"
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
tmpfs:
- /tmp
- docker_proxy
volumes:
- "{{ app_data_dir }}/renovate/config.js:/usr/src/app/config.js:ro"
- "{{ app_data_dir }}/renovate/entrypoint.sh:/entrypoint.sh:ro"
- ./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:
- /mnt/tank/dbs/redis/renovate:/data
- ./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