Commit ad7bb715 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

docker: Use a volume for backup configuration

Otherwise we need to rebuild the image. Thanks @duez.
See !877
parent 2bb32b81
Pipeline #214091 passed with stages
in 10 minutes
......@@ -4,9 +4,9 @@ RUN apt-get update && apt-get install -y mysql-client zip
RUN touch /var/log/cron.log
ADD ./conf/backup-cron /etc/cron.d/backup-cron
RUN ln -sf /etc/backup/backup-cron /etc/cron.d/backup-cron
ADD ./conf/backup.cnf /root/.my.cnf
RUN ln -sf /etc/backup/backup.cnf /root/.my.cnf
RUN ln -sf /dev/stdout /var/log/cron.log && ln -sf /dev/stderr /var/log/cron.log
......@@ -73,6 +73,8 @@ services:
build: ./backup
- uwsgi
- ./backup/conf:/etc/backup
- mysql
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment