nextcloud: remove fix and add themes volumes

This commit is contained in:
Wonderfall 2017-03-12 22:33:12 +01:00
parent 4b47aecbd6
commit afdb943da2
5 changed files with 6 additions and 7 deletions

View File

@ -110,7 +110,7 @@ COPY s6.d /etc/s6.d
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
VOLUME /data /config /apps2 VOLUME /data /config /apps2 /nextcloud/themes
EXPOSE 8888 EXPOSE 8888

View File

@ -10,8 +10,6 @@ sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/ph
ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null
ln -sf /apps2 /nextcloud &>/dev/null ln -sf /apps2 /nextcloud &>/dev/null
mv nextcloud fix && mv fix nextcloud # fix strange bug
# Create folder for php sessions if not exists # Create folder for php sessions if not exists
if [ ! -d /data/session ]; then if [ ! -d /data/session ]; then
mkdir -p /data/session; mkdir -p /data/session;

View File

@ -20,7 +20,7 @@
- OPCache (opcocde), APCu (local) installed and configured. - OPCache (opcocde), APCu (local) installed and configured.
- system cron task running. - system cron task running.
- MySQL, PostgreSQL (server not built-in) and sqlite3 support. - MySQL, PostgreSQL (server not built-in) and sqlite3 support.
- Redis, FTP, SMB, LDAP support. - Redis, FTP, SMB, LDAP, IMAP support.
- GNU Libiconv for php iconv extension (avoiding errors with some apps). - GNU Libiconv for php iconv extension (avoiding errors with some apps).
- No root processes. Never. - No root processes. Never.
- Environment variables provided (see below). - Environment variables provided (see below).
@ -66,6 +66,7 @@ Don't forget to use a **strong password** for the admin account!
- **/data** : Nextcloud data. - **/data** : Nextcloud data.
- **/config** : config.php location. - **/config** : config.php location.
- **/apps2** : Nextcloud downloaded apps. - **/apps2** : Nextcloud downloaded apps.
- **/nextcloud/themes** : Nextcloud themes location.
### Database ### Database
Basically, you can use a database instance running on the host or any other machine. An easier solution is to use an external database container. I suggest you to use MariaDB, which is a reliable database server. You can use the official `mariadb` image available on Docker Hub to create a database container, which must be linked to the Nextcloud container. PostgreSQL can also be used as well. Basically, you can use a database instance running on the host or any other machine. An easier solution is to use an external database container. I suggest you to use MariaDB, which is a reliable database server. You can use the official `mariadb` image available on Docker Hub to create a database container, which must be linked to the Nextcloud container. PostgreSQL can also be used as well.
@ -88,6 +89,7 @@ docker run -d --name nextcloud \
-v /mnt/nextcloud/data:/data \ -v /mnt/nextcloud/data:/data \
-v /mnt/nextcloud/config:/config \ -v /mnt/nextcloud/config:/config \
-v /mnt/nextcloud/apps:/apps2 \ -v /mnt/nextcloud/apps:/apps2 \
-v /mnt/nextcloud/themes:/nextcloud/themes \
-e UID=1000 -e GID=1000 \ -e UID=1000 -e GID=1000 \
-e UPLOAD_MAX_SIZE=10G \ -e UPLOAD_MAX_SIZE=10G \
-e APC_SHM_SIZE=128M \ -e APC_SHM_SIZE=128M \
@ -153,6 +155,7 @@ nextcloud:
- /mnt/nextcloud/data:/data - /mnt/nextcloud/data:/data
- /mnt/nextcloud/config:/config - /mnt/nextcloud/config:/config
- /mnt/nextcloud/apps:/apps2 - /mnt/nextcloud/apps:/apps2
- /mnt/nextcloud/themes:/nextcloud/themes
# If using MySQL # If using MySQL
nextcloud-db: nextcloud-db:

View File

@ -100,7 +100,7 @@ COPY s6.d /etc/s6.d
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
VOLUME /data /config /apps2 VOLUME /data /config /apps2 /nextcloud/themes
EXPOSE 8888 EXPOSE 8888

View File

@ -10,8 +10,6 @@ sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/ph
ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null
ln -sf /apps2 /nextcloud &>/dev/null ln -sf /apps2 /nextcloud &>/dev/null
mv nextcloud fix && mv fix nextcloud # fix strange bug
# Create folder for php sessions if not exists # Create folder for php sessions if not exists
if [ ! -d /data/session ]; then if [ ! -d /data/session ]; then
mkdir -p /data/session; mkdir -p /data/session;