1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-05-17 13:14:38 +00:00
docker-volume-s3-backup/template.Dockerfile

27 lines
562 B
Docker
Raw Normal View History

2019-11-27 17:05:27 -07:00
FROM alpine:{alpine_version}
2019-11-27 22:03:09 -07:00
ADD install.sh install.sh
2019-11-27 17:05:27 -07:00
RUN sh install.sh && rm install.sh
ENV POSTGRES_DATABASE **None**
ENV POSTGRES_HOST **None**
ENV POSTGRES_PORT 5432
ENV POSTGRES_USER **None**
ENV POSTGRES_PASSWORD **None**
ENV POSTGRES_EXTRA_OPTS ''
ENV S3_ACCESS_KEY_ID **None**
ENV S3_SECRET_ACCESS_KEY **None**
ENV S3_BUCKET **None**
ENV S3_REGION us-west-1
ENV S3_PATH 'backup'
ENV S3_ENDPOINT **None**
ENV S3_S3V4 no
ENV SCHEDULE **None**
2019-11-27 20:57:21 -07:00
ENV DROP_PUBLIC no
2019-11-27 17:05:27 -07:00
2019-11-27 22:03:09 -07:00
ADD run.sh run.sh
ADD backup.sh backup.sh
ADD restore.sh restore.sh
2019-11-27 17:05:27 -07:00
CMD ["sh", "run.sh"]