mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-06-05 14:44:30 -04:00
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
---
|
|
version: "3.7"
|
|
|
|
services:
|
|
ocis:
|
|
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
|
networks:
|
|
ocis-net:
|
|
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:
|
|
# setup is for demonstration purposes only;
|
|
OCIS_INSECURE: "${INSECURE:-false}"
|
|
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-info}
|
|
# admin user password
|
|
IDM_ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin}" # this overrides the admin password from the configuration file
|
|
# demo users
|
|
IDM_CREATE_DEMO_USERS: "${DEMO_USERS:-true}"
|
|
# enable the antivirus service
|
|
OCIS_ADD_RUN_SERVICES: "antivirus"
|
|
# configure the antivirus service
|
|
POSTPROCESSING_STEPS: "virusscan"
|
|
ANTIVIRUS_SCANNER_TYPE: "clamav"
|
|
ANTIVIRUS_CLAMAV_SOCKET: "/var/run/clamav/clamd.sock"
|
|
volumes:
|
|
- "ocis-config:/etc/ocis"
|
|
- "ocis-data:/var/lib/ocis"
|
|
- "clamav-socket:/var/run/clamav"
|
|
ports:
|
|
- 9200:9200
|
|
logging:
|
|
driver: "local"
|
|
restart: always
|
|
|
|
clamav:
|
|
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
|
|
networks:
|
|
ocis-net:
|
|
volumes:
|
|
- "clamav-socket:/tmp"
|
|
- "clamav-db:/var/lib/clamav"
|
|
logging:
|
|
driver: "local"
|
|
restart: always
|
|
|
|
volumes:
|
|
clamav-socket:
|
|
clamav-db:
|
|
ocis-config:
|
|
ocis-data:
|
|
|
|
networks:
|
|
ocis-net:
|