Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- ocis:
- image: owncloud/ocis:latest
- # the latest tag is not recommended, because you don't know which version you'll get
- # but even if you use `owncloud/ocis:1.16.0` you cannot be sure that you'll get
- # the exact same image if you pull it at a later point in time (because docker image tags are not immutable).
- # To be 100% that you always get the same image, you can pin the digest (hash) of the
- # image. If you do a `docker pull owncloud/ocis:latest`, it also will also show you the digest.
- # see also https://docs.docker.com/engine/reference/commandline/images/#list-image-digests
- environment:
- # INSECURE: needed if oCIS / Traefik is using self generated certificates
- OCIS_INSECURE: "true"
- # OCIS_URL: the external domain / ip address of oCIS (with protocol, must always be https)
- OCIS_URL: "https://localhost:9200"
- # OCIS_LOG_LEVEL: error / info / ... / debug
- OCIS_LOG_LEVEL: info
- volumes:
- # mount the ocis config file inside the container
- - "./ocis.yaml:/etc/ocis/ocis.yaml"
- # short syntax for using a named volume
- # in the form <volume name>:<mount path in the container>
- # use a named volume for the ocis data directory
- - "/mnt/ocis:/var/lib/ocis"
- # or the more verbose syntax
- #- type: volume
- # source: ocis-data # name of the volume
- # target: /var/lib/ocis # the mount path inside the container
- ports:
- - 9200:9200
- # https://docs.docker.com/compose/compose-file/compose-file-v3/#restart
- restart: always # or on-failure / unless-stopped
- # https://docs.docker.com/config/containers/logging/configure/
- # https://docs.docker.com/compose/compose-file/compose-file-v3/#logging
- # the default log driver does no log rotation
- # you can switch to the "local" log driver which does rotation by default
- logging:
- driver: local
- # otherwise you could specify log rotation explicitly
- # driver: "json-file" # this is the default driver
- # options:
- # max-size: "200k" # limit the size of the log file
- # max-file: "10" # limit the count of the log files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement