mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-14 18:35:24 +02:00
The container was restart-looping because the built-in IdP fatals with "invalid iss value, URL must start with https://" when OCIS_URL uses plain http, which caused the sustained 502. - Set owncloud_url to https://${main_domain} so the IdP issuer is valid and ocis server stays up. - oCIS 8.x unconditionally answers 308 -> https:// whenever it receives X-Forwarded-Proto: http (services/proxy https_redirect middleware), so the domain check then died on a redirect loop into a non-existent 443 router. Add a small nginx gateway in front of oCIS that forwards requests with X-Forwarded-Proto: https (what a TLS-terminating proxy sends) and point the Dokploy domain at gateway:8080. - Update the README notes accordingly. Verified on a live Dokploy instance: deploy done, GET / returns HTTP 200 with title "ownCloud". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
gateway:
|
|
image: nginx:1.27-alpine
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- owncloud-infinite-scale
|
|
expose:
|
|
- "8080"
|
|
volumes:
|
|
- ../files/etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
owncloud-infinite-scale:
|
|
image: owncloud/ocis:8.0.3
|
|
restart: unless-stopped
|
|
entrypoint:
|
|
- /bin/sh
|
|
command: ["-c", "ocis init --insecure yes || true; ocis server"]
|
|
expose:
|
|
- "9200"
|
|
environment:
|
|
OCIS_URL: ${OCIS_URL}
|
|
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL}
|
|
OCIS_INSECURE: "true"
|
|
PROXY_TLS: "false"
|
|
PROXY_HTTP_ADDR: 0.0.0.0:9200
|
|
IDM_ADMIN_PASSWORD: ${IDM_ADMIN_PASSWORD}
|
|
SETTINGS_GRPC_ADDR: 0.0.0.0:9191
|
|
GATEWAY_GRPC_ADDR: 0.0.0.0:9142
|
|
STORAGE_USERS_DATA_GATEWAY_URL: http://owncloud-infinite-scale:9200/data
|
|
THUMBNAILS_FILESYSTEMSTORAGE_ROOT: /var/lib/ocis-thumbnails
|
|
volumes:
|
|
- owncloud-infinite-scale-config:/etc/ocis
|
|
- owncloud-infinite-scale-data:/var/lib/ocis
|
|
- owncloud-infinite-scale-thumbnails:/var/lib/ocis-thumbnails
|
|
|
|
volumes:
|
|
owncloud-infinite-scale-config:
|
|
owncloud-infinite-scale-data:
|
|
owncloud-infinite-scale-thumbnails:
|