I’m trying to run Collabora locally, but I’m getting the following error message when trying to open a document:
"Document upload failed
A failure occurred while establishing the socket connection, or the socket connection was closed unexpectedly. The reverse proxy may be misconfigured, contact your administrator. For more information about proxy configuration see: https://sdk.collaboraonline.com/installation/Proxy_settings.html"
docker-compose collabora:
version: '3.9'
services:
collabora:
container_name: collabora
image: collabora/code:23.05.6.4.1
restart: always
environment:
- username=admin
- password=b1gl1nux_collabora
- aliasgroup1=http://localhost:8286
- extra_params=-o:welcome.enable=false -o:ssl.enable=false
- dictionaries=en_US es_ES pt_BR pt_PT
volumes:
# Configuration Collabora
- ${HOME}/Docker/Nextcloud-Plus/Collabora/config/coolwsd.xml:/etc/coolwsd/coolwsd.xml
#- ${HOME}/Docker/Nextcloud-Plus/Collabora/fonts/truetype:/usr/share/fonts/truetype
#- ${HOME}/Docker/Nextcloud-Plus/Collabora/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype
ports:
- "9980:9980"
deploy:
resources:
limits:
# Limits the CPU usage by the container to 4 cores.
cpus: '4'
# Limits the memory usage by the container to 4GB.
memory: 4G
healthcheck:
# Checks the health of the container using curl to access port 9980.
test: ["CMD", "curl", "-f", "https://127.0.0.1:9980"]
# The interval between each health check.
interval: 30s
# The maximum amount of time a health check can take before it is considered a failure.
timeout: 10s
# The number of consecutive health check failures required for the container to be considered unhealthy.
retries: 6
# Network the container will be connected to.
networks:
collabora-net:
ipv4_address: 172.20.0.200
# Defines the networks that will be created
networks:
collabora-net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
docker-compose nextcloud:
version: '3.9'
services:
nextcloud_db:
image: postgres:15-alpine
container_name: nextcloud_db
restart: always
volumes:
- ${HOME}/Docker/Nextcloud-Plus/db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=b1gl1nux@db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
deploy:
resources:
limits:
# Limits the CPU usage by the container to 2 cores.
cpus: '2'
# Limits the memory usage by the container to 4GB.
memory: 4G
healthcheck:
# Checks the health of the container using curl to access port 5432.
test: ["CMD", "curl", "-f", "http://127.0.0.1:5432"]
# The interval between each health check.
interval: 30s
# The maximum amount of time a health check can take before it is considered a failure.
timeout: 10s
# The number of consecutive health check failures required for the container to be considered unhealthy.
retries: 6
networks:
- nextcloud-net
nextcloud:
image: nextcloud:stable
container_name: nextcloud
restart: always
volumes:
- ${HOME}/Docker/Nextcloud-Plus/nextcloud:/var/www/html
#- ${HOME}/Docker/Nextcloud-Plus/nextcloud/opcache-recommended.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini
environment:
- POSTGRES_HOST=nextcloud_db
- POSTGRES_PASSWORD=b1gl1nux@db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=biglinux
- REDIS_HOST=redis
- REDIS_HOST_PORT=6379
- REDIS_HOST_PASSWORD=b1gl1nux@redis
depends_on:
- nextcloud_db
- redis
ports:
- "8286:80/tcp"
deploy:
resources:
limits:
# Limits the CPU usage by the container to 2 cores.
cpus: '2'
# Limits the memory usage by the container to 4GB.
memory: 4G
healthcheck:
# Checks the health of the container using curl to access port 8200.
test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
# The interval between each health check.
interval: 30s
# The maximum amount of time a health check can take before it is considered a failure.
timeout: 10s
# The number of consecutive health check failures required for the container to be considered unhealthy.
retries: 6
networks:
- nextcloud-net
- collabora-net
redis:
image: redis:alpine
container_name: redis
restart: unless-stopped
command: redis-server --requirepass b1gl1nux@redis --appendonly yes
volumes:
- ${HOME}/Docker/Nextcloud-Plus/redis:/data
deploy:
resources:
limits:
# Limits the CPU usage by the container to 1 cores.
cpus: '1'
# Limits the memory usage by the container to 1GB.
memory: 1G
# Network the container will be connected to.
networks:
- nextcloud-net
# Defines the networks that will be created
networks:
# Network name
nextcloud-net:
# Name assigned to the network
name: nextcloud-net
docker exec -it nextcloud curl http://172.20.0.200:9980
OK% ❯ docker exec -u www-data nextcloud php occ config:app:get richdocuments wopi_url
http://172.20.0.200:9980