|
@ -7,8 +7,8 @@ FROM localhost/debian |
|
|
# -p (port) and -v (volume) both go host:container |
|
|
# -p (port) and -v (volume) both go host:container |
|
|
LABEL config_default="\ |
|
|
LABEL config_default="\ |
|
|
-p 9080:80 \ |
|
|
-p 9080:80 \ |
|
|
-v /srv/vol/nextcloud/files:/vol/files \ |
|
|
-v $HOME/vol/nextcloud/files:/vol/files \ |
|
|
-v /srv/vol/nextcloud/data:/vol/data |
|
|
-v $HOME/vol/nextcloud/data:/vol/data \ |
|
|
--shm-size=1g" |
|
|
--shm-size=1g" |
|
|
|
|
|
|
|
|
# Build Variables |
|
|
# Build Variables |
|
@ -66,12 +66,12 @@ RUN mv php/php.ini /etc/php/${PHPV:?}/fpm/ && \ |
|
|
### |
|
|
### |
|
|
|
|
|
|
|
|
# configure PostgreSQL |
|
|
# configure PostgreSQL |
|
|
COPY --chown=postgres:postgres assets/postgresql ./ |
|
|
COPY --chown=postgres:postgres assets/postgresql/ postgresql/ |
|
|
# If the posgresql.conf file contains multiple entries for the same parameter, all but the last one is ignored. |
|
|
# If the posgresql.conf file contains multiple entries for the same parameter, all but the last one is ignored. |
|
|
# So we can just append our settings to the already-existing postgresql.conf file. |
|
|
# So we can just append our settings to the already-existing postgresql.conf file. |
|
|
RUN mv postgresql/pg_hba.conf /etc/postgresql/${PSQLV:?}/main/ & \ |
|
|
RUN mv postgresql/pg_hba.conf /etc/postgresql/${PSQLV:?}/main/ && \ |
|
|
cat postgresql/postgresql.conf >> /etc/postgresql/${PSQLV:?}/main/postgresql.conf |
|
|
cat postgresql/postgresql.conf >> /etc/postgresql/${PSQLV:?}/main/postgresql.conf && \ |
|
|
|
|
|
rm -rf postgresql |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### |
|
|
### |
|
@ -101,12 +101,16 @@ RUN usermod -a -G redis www-data |
|
|
### |
|
|
### |
|
|
|
|
|
|
|
|
# download nextcloud |
|
|
# download nextcloud |
|
|
|
|
|
COPY assets/nextcloud/ ./ |
|
|
|
|
|
RUN test -f latest.zip || \ |
|
|
|
|
|
wget --progress=dot:giga https://download.nextcloud.com/server/releases/latest.zip |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /var/www/html |
|
|
WORKDIR /var/www/html |
|
|
RUN wget --progress=dot:giga https://download.nextcloud.com/server/releases/latest.zip && \ |
|
|
RUN echo "Unzipping ..." && \ |
|
|
echo "Unzipping ..." && \ |
|
|
unzip -q $HOME/latest.zip && \ |
|
|
unzip -q latest.zip && \ |
|
|
|
|
|
chown -R www-data:www-data nextcloud && \ |
|
|
chown -R www-data:www-data nextcloud && \ |
|
|
rm latest.zip |
|
|
rm $HOME/latest.zip |
|
|
|
|
|
|
|
|
# create data dir for nextcloud |
|
|
# create data dir for nextcloud |
|
|
RUN mkdir -p /vol/files && \ |
|
|
RUN mkdir -p /vol/files && \ |
|
|