Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .docker/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ groupmod --non-unique --gid "${HOST_GID}" www-data

# Clone Nextcloud repository, if needed
if [ ! -d ".git" ]; then
git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /var/www/html
git init
git remote add origin https://github.com/nextcloud/server
git fetch --depth=1 origin "${VERSION_NEXTCLOUD}"
git checkout "${VERSION_NEXTCLOUD}"
git submodule update --init --recursive
mkdir data
mkdir apps-writable
mkdir apps-extra
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ services:
command: postgres -c log_statement=all
mysql:
image: mysql
cap_add:
- SYS_NICE # CAP_SYS_NICE
volumes:
- ./.docker/config/mysql:/etc/mysql/conf.d
- ./volumes/mysql/dump:/docker-entrypoint-initdb.d
- ./volumes/mysql/data:/var/lib/mysql
- mysql-init:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql
ports:
- 127.0.0.1:3306:3306
restart: unless-stopped
Expand Down Expand Up @@ -78,3 +75,6 @@ services:
- 127.0.0.1:${MAILHOG_PORT:-8025}:8025
redis:
image: redis
volumes:
mysql-init:
mysql-data:
1 change: 1 addition & 0 deletions nextcloud
Submodule nextcloud added at d237fd