Create volume for /etc/shlink/data

Makes it so shlink can be used as a docker service without losing ur data every time
This commit is contained in:
RaINi_ 2021-03-29 12:46:45 +02:00 committed by GitHub
parent f8289fa4be
commit 312f20d2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,8 @@ EXPOSE 8080
# Expose params config dir, since the user is expected to provide custom config from there
VOLUME /etc/shlink/config/params
# Expose data to have it persistent when using shlink as a docker service or similar
VOLUME /etc/shlink/data
# Copy config specific for the image
COPY docker/docker-entrypoint.sh docker-entrypoint.sh