Shorten names for Nextcloud services.

This commit is contained in:
2023-08-20 17:10:31 -07:00
parent 4c846b871e
commit 48a358ca57
2 changed files with 21 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ version: '3'
services: services:
db: db:
container_name: nextcloud-db container_name: nc-db
image: mariadb:10.6 image: mariadb:10.6
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
@@ -24,7 +24,7 @@ services:
- MYSQL_PASSWORD=changeme - MYSQL_PASSWORD=changeme
oo: oo:
container_name: nextcloud-oo container_name: nc-oo
image: onlyoffice/documentserver image: onlyoffice/documentserver
restart: always restart: always
ports: ports:
@@ -32,13 +32,13 @@ services:
- 4443:443 - 4443:443
redis: redis:
container_name: nextcloud-redis container_name: nc-redis
image: redis image: redis
restart: always restart: always
command: redis-server --requirepass someredispassword command: redis-server --requirepass someredispassword
app: app:
container_name: nextcloud-app container_name: nc-app
image: nextcloud image: nextcloud
restart: always restart: always
ports: ports:

View File

@@ -2,35 +2,35 @@
# 2022-09-25 Hyperling # 2022-09-25 Hyperling
# Put fixes in a file so they do not need remembered. # Put fixes in a file so they do not need remembered.
docker exec -it nextcloud-app apt update -y docker exec -it nc-app apt update -y
docker exec -it nextcloud-app apt install -y sudo libmagickcore-6.q16-6-extra htop iputils-ping dnsutils docker exec -it nc-app apt install -y sudo libmagickcore-6.q16-6-extra htop iputils-ping dnsutils
# 2022-10-30 More additions after moving to Nextcloud version 25. # 2022-10-30 More additions after moving to Nextcloud version 25.
docker exec -itu www-data nextcloud-app ./occ db:add-missing-columns docker exec -itu www-data nc-app ./occ db:add-missing-columns
docker exec -itu www-data nextcloud-app ./occ db:add-missing-indices docker exec -itu www-data nc-app ./occ db:add-missing-indices
docker exec -itu www-data nextcloud-app ./occ db:add-missing-primary-keys docker exec -itu www-data nc-app ./occ db:add-missing-primary-keys
docker exec -itu www-data nextcloud-app ./occ db:convert-filecache-bigint docker exec -itu www-data nc-app ./occ db:convert-filecache-bigint
docker exec -it nextcloud-app chown -Rc www-data:www-data . docker exec -it nc-app chown -Rc www-data:www-data .
# 2023-02-12 Just for good measure. # 2023-02-12 Just for good measure.
docker exec -itu www-data nextcloud-app ./occ app:update --all docker exec -itu www-data nc-app ./occ app:update --all
# 2023-07-02 # 2023-07-02
# This maybe used to exist, but make sure that Files app is correct. # This maybe used to exist, but make sure that Files app is correct.
docker exec -itu www-data nextcloud-app ./occ files:scan --all docker exec -itu www-data nc-app ./occ files:scan --all
# This one takes a while. # This one takes a while.
docker exec -itu www-data nextcloud-app ./occ files:scan-app-data docker exec -itu www-data nc-app ./occ files:scan-app-data
# Extras? Have used the commands in the past and may help in the future. # Extras? Have used the commands in the past and may help in the future.
docker exec -itu www-data nextcloud-app ./occ maintenance:theme:update docker exec -itu www-data nc-app ./occ maintenance:theme:update
docker exec -itu www-data nextcloud-app ./occ maintenance:repair docker exec -itu www-data nc-app ./occ maintenance:repair
# May alsp be useful but do not have much experience with them. # May alsp be useful but do not have much experience with them.
docker exec -itu www-data nextcloud-app ./occ versions:cleanup docker exec -itu www-data nc-app ./occ versions:cleanup
docker exec -itu www-data nextcloud-app ./occ files:cleanup docker exec -itu www-data nc-app ./occ files:cleanup
# 2023-08-20 For OnlyOffice based on: # 2023-08-20 For OnlyOffice based on:
# https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud/blob/master/set_configuration.sh # https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud/blob/master/set_configuration.sh
docker exec -u www-data nextcloud-app php occ --no-warnings app:install onlyoffice docker exec -u www-data nc-app php occ --no-warnings app:install onlyoffice
docker exec -u www-data nextcloud-app php occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://nextcloud-oo/" docker exec -u www-data nc-app php occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://nc-oo/"
docker exec -u www-data nextcloud-app php occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nextcloud-app/" docker exec -u www-data nc-app php occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nc-app/"
exit 0 exit 0