2023-07-02 23:17:39 +00:00
|
|
|
---
|
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
ocis:
|
|
|
|
image: owncloud/ocis:latest
|
|
|
|
container_name: owncloud-ocis
|
|
|
|
hostname: owncloud-ocis
|
|
|
|
restart: unless-stopped
|
|
|
|
entrypoint:
|
|
|
|
- /bin/sh
|
|
|
|
# run ocis init to initialize a configuration file with random secrets
|
|
|
|
# it will fail on subsequent runs, because the config file already exists
|
|
|
|
# therefore we ignore the error and then start the ocis server
|
|
|
|
command: ["-c", "ocis init || true; ocis server"]
|
|
|
|
environment:
|
2024-04-22 09:42:33 +00:00
|
|
|
- OCIS_URL=https://localhost:9200 # adjust to your FQDN domain; https required
|
2024-04-22 09:41:23 +00:00
|
|
|
- PROXY_TLS=true # disable if you use a reverse proxy with SSL support in front
|
2023-07-02 23:31:05 +00:00
|
|
|
- OCIS_INSECURE=true # required if you use a reverse proxy with SSL support in front
|
2023-07-02 23:17:39 +00:00
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/owncloud-ocis/config:/etc/ocis
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/owncloud-ocis/data:/var/lib/ocis
|
2023-09-25 11:35:41 +00:00
|
|
|
ports:
|
2023-09-25 11:36:05 +00:00
|
|
|
- 9200:9200
|
2023-07-02 23:31:05 +00:00
|
|
|
expose:
|
|
|
|
- 9200
|
2023-09-25 11:35:41 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.ocis.rule=Host(`cloud.example.com`) # adjust to your domain
|
|
|
|
# - traefik.http.services.ocis.loadbalancer.server.port=9200
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
|
|
|
|
# - traefik.docker.network=dev
|
|
|
|
# # disallow listing version details via /status.php endpoint
|
|
|
|
# - traefik.http.routers.ocis-version-disclosure.rule=Host(`cloud.example.com`) && Path(`/status.php`)
|
|
|
|
# - traefik.http.routers.ocis-version-disclosure.middlewares=local-ipwhitelist@file
|
|
|
|
#networks:
|
|
|
|
# - dev
|
2023-07-02 23:17:39 +00:00
|
|
|
|
2023-09-25 11:35:41 +00:00
|
|
|
#networks:
|
|
|
|
# dev:
|
|
|
|
# external: true
|