Files
update-homelab-ip/docker-compose.yml

16 lines
414 B
YAML

services:
cron:
image: git.rhost.ovh/ryjek/update-homelab-ip:0.0.2
platform: linux/x86_64
build:
context: .
dockerfile: service/Dockerfile
restart: on-failure
command: >
bash -c "printenv > /etc/environment && cron -f"
volumes:
- ./project:/var/www/html
- ./logs/:/var/log/cron
- ./service/logrotate:/etc/logrotate.d/cron-log
env_file:
- .env