Advertisement
Guest User

Untitled

a guest
Mar 24th, 2025
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.15 KB | None | 0 0
  1. services:
  2.   ocis:
  3.     image: owncloud/ocis:latest
  4.     # the latest tag is not recommended, because you don't know which version you'll get
  5.     # but even if you use `owncloud/ocis:1.16.0` you cannot be sure that you'll get
  6.     # the exact same image if you pull it at a later point in time (because docker image tags are not immutable).
  7.     # To be 100% that you always get the same image, you can pin the digest (hash) of the
  8.     # image. If you do a `docker pull owncloud/ocis:latest`, it also will also show you the digest.
  9.     # see also https://docs.docker.com/engine/reference/commandline/images/#list-image-digests
  10.     environment:
  11.      # INSECURE: needed if oCIS / Traefik is using self generated certificates
  12.       OCIS_INSECURE: "true"
  13.  
  14.       # OCIS_URL: the external domain / ip address of oCIS (with protocol, must always be https)
  15.       OCIS_URL: "https://localhost:9200"
  16.  
  17.       # OCIS_LOG_LEVEL: error / info / ... / debug
  18.       OCIS_LOG_LEVEL: info
  19.     volumes:
  20.      # mount the ocis config file inside the container
  21.       - "./ocis.yaml:/etc/ocis/ocis.yaml"
  22.       # short syntax for using a named volume
  23.  
  24.       # in the form <volume name>:<mount path in the container>
  25.       # use a named volume for the ocis data directory
  26.       - "/mnt/ocis:/var/lib/ocis"
  27.       # or the more verbose syntax
  28.       #- type: volume
  29.       #  source: ocis-data # name of the volume
  30.       #  target: /var/lib/ocis # the mount path inside the container
  31.     ports:
  32.      - 9200:9200
  33.     # https://docs.docker.com/compose/compose-file/compose-file-v3/#restart
  34.     restart: always # or on-failure / unless-stopped
  35.  
  36.     # https://docs.docker.com/config/containers/logging/configure/
  37.     # https://docs.docker.com/compose/compose-file/compose-file-v3/#logging
  38.     # the default log driver does no log rotation
  39.     # you can switch to the "local" log driver which does rotation by default
  40.     logging:
  41.       driver: local
  42.     # otherwise you could specify log rotation explicitly
  43.     #  driver: "json-file" # this is the default driver
  44.     #  options:
  45.     #    max-size: "200k" # limit the size of the log file
  46.     #    max-file: "10" # limit the count of the log files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement