Added data volumes to Dockerfile

This commit is contained in:
Kamil Trzcinski 2015-06-26 15:19:58 +02:00
parent 17446ff0c9
commit 2b5007245a
1 changed files with 5 additions and 2 deletions

View File

@ -23,8 +23,11 @@ RUN mkdir -p /opt/gitlab/sv/sshd/supervise \
&& ln -s /opt/gitlab/sv/sshd /opt/gitlab/service \
&& mkdir -p /var/run/sshd
# Expose web & ssh
EXPOSE 80 22
# Expose https & http & ssh
EXPOSE 443 80 22
# Define data volumes
VOLUME ["/etc/gitlab", "/var/opt/gitlab", "/var/log/gitlab"]
# Copy assets
COPY assets/wrapper /usr/local/bin/