Move output dir to /repository/debian & expose it
We need the output data to be persistent and/or backed-up, and the right way to do this is to expose it to other containers which use the --volumes-from option. The data volume is called /repository rather than /docker to avoid possible conflict with /docker in other using containers.
This commit is contained in:
parent
082b56789e
commit
25bbb48dcf
3 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ ENV DEBIAN_FRONTEND newt
|
||||||
ADD scripts/start.sh /usr/local/sbin/start
|
ADD scripts/start.sh /usr/local/sbin/start
|
||||||
RUN chmod 755 /usr/local/sbin/start
|
RUN chmod 755 /usr/local/sbin/start
|
||||||
|
|
||||||
VOLUME ["/docker/keys", "/docker/incoming"]
|
VOLUME ["/docker/keys", "/docker/incoming", "/repository"]
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
|
@ -2,7 +2,7 @@ server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server ipv6only=on;
|
listen [::]:80 default_server ipv6only=on;
|
||||||
|
|
||||||
root /var/www;
|
root /repository/debian;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
# Make site accessible from http://localhost/
|
# Make site accessible from http://localhost/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
BASEDIR=/var/lib/reprepro
|
BASEDIR=/var/lib/reprepro
|
||||||
INCOMING=/docker/incoming
|
INCOMING=/docker/incoming
|
||||||
OUTDIR=/var/www/debian
|
OUTDIR=/repository/debian
|
||||||
|
|
||||||
#
|
#
|
||||||
# Make sure we're in the apt/ directory
|
# Make sure we're in the apt/ directory
|
||||||
|
|
Loading…
Reference in a new issue