mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 11:19:39 -06:00
180 lines
5.0 KiB
YAML
180 lines
5.0 KiB
YAML
---
|
|
version: '3.5'
|
|
|
|
networks:
|
|
testnet:
|
|
name: testnet
|
|
|
|
services:
|
|
ocis:
|
|
container_name: ocis
|
|
## Comment out either the 'build:' section or the 'image:' line. They are mutually exclusive.
|
|
## Using an image is prefered, as this is the published way of building and faster.
|
|
image: owncloud/eos-ocis:${EOS_OCIS_TAG:-1.0.0-rc5}
|
|
#build:
|
|
# context: ./docker/eos-ocis
|
|
# args:
|
|
# BRANCH: ${BRANCH:-v1.0.0-rc5}
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
ports:
|
|
- 9200:9200
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: ocis
|
|
networks:
|
|
- testnet
|
|
environment:
|
|
# ocis log level will be used for all services
|
|
OCIS_LOG_LEVEL: debug
|
|
# domain setup
|
|
# TODO currently the below lines hardcode the port to 9200, use an OCIS_URL that includes protocol and port
|
|
OCIS_URL: https://${OCIS_DOMAIN:-localhost:9200}
|
|
# make home and users storages use eos
|
|
STORAGE_HOME_DRIVER: eoshome
|
|
STORAGE_USERS_DRIVER: eos
|
|
# make accounts use ocis storage driver
|
|
# TODO provision metadata storage in eos and switch to cs3 backend for accounts
|
|
ACCOUNTS_LOG_LEVEL: debug
|
|
ACCOUNTS_STORAGE_DISK_PATH: /var/tmp/ocis/accounts
|
|
# TODO make id the default in ocis-storage
|
|
STORAGE_DRIVER_EOS_LAYOUT: "{{substr 0 1 .Id.OpaqueId}}/{{.Id.OpaqueId}}"
|
|
# common eos settings used for both drivers: eos and eoshome
|
|
STORAGE_DRIVER_EOS_MASTER_URL: ${EOS_MGM_URL:-root://mgm-master.testnet:1094}
|
|
STORAGE_DRIVER_EOS_SLAVE_URL: ${EOS_MGM_URL:-root://mgm-master.testnet:1094}
|
|
STORAGE_DRIVER_EOS_NAMESPACE: "/eos/dockertest/reva/users"
|
|
# the eos end xrdcopy binaries use this env var to find the eos mgm
|
|
EOS_MGM_URL: ${EOS_MGM_URL:-root://mgm-master.testnet:1094}
|
|
# TODO without this the /etc/nclcd.conf file is empty
|
|
LDAP_BINDDN: "cn=reva,ou=sysusers,dc=example,dc=org"
|
|
LDAP_BINDPW: "reva"
|
|
|
|
mgm-master:
|
|
container_name: mgm-master
|
|
image: owncloud/eos-mgm:4.8.26
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: mgm-master.testnet
|
|
networks:
|
|
- testnet
|
|
volumes:
|
|
- eos-mgm-master-log:/var/log/eos
|
|
- eos-mgm-master-config:/var/eos/config
|
|
- eos-mgm-master-ns-queue:/var/eos/ns-queue
|
|
# this volume kills mgm-master during startup
|
|
# - ./e/master/var/eos/md:/var/eos/md
|
|
environment:
|
|
EOS_SET_MASTER: 1
|
|
|
|
mq-master:
|
|
container_name: mq-master
|
|
image: owncloud/eos-mq:4.8.26
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: mq-master.testnet
|
|
networks:
|
|
- testnet
|
|
volumes:
|
|
- eos-mq-master-log:/var/log/eos
|
|
- eos-mq-master-config:/var/eos/config
|
|
- eos-mq-master-ns-queue:/var/eos/ns-queue
|
|
environment:
|
|
EOS_SET_MASTER: 1
|
|
|
|
fst:
|
|
container_name: fst
|
|
image: owncloud/eos-fst:4.8.26
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: fst.testnet
|
|
networks:
|
|
- testnet
|
|
volumes:
|
|
- eos-fst-log:/var/log/eos
|
|
- eos-fst-disks:/disks
|
|
environment:
|
|
EOS_MGM_URL: "root://mgm-master.testnet"
|
|
|
|
quark-1:
|
|
container_name: quark-1
|
|
image: owncloud/eos-qdb:4.8.26
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: quark-1.testnet
|
|
networks:
|
|
- testnet
|
|
volumes:
|
|
- eos-quarkdb1:/var/lib/quarkdb
|
|
environment:
|
|
EOS_QDB_DIR: "/var/lib/quarkdb/eosns"
|
|
EOS_QDB_PORT: "7777"
|
|
EOS_QDB_MODE: "raft"
|
|
EOS_QDB_CLUSTER_ID: "3d659c1a-e70f-43f0-bed4-941a2ca0765b"
|
|
EOS_QDB_NODES: "quark-1.testnet:7777,quark-2.testnet:7777,quark-3.testnet:7777"
|
|
|
|
quark-2:
|
|
container_name: quark-2
|
|
image: owncloud/eos-qdb:4.8.26
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: quark-2.testnet
|
|
networks:
|
|
- testnet
|
|
volumes:
|
|
- eos-quarkdb2:/var/lib/quarkdb
|
|
environment:
|
|
EOS_QDB_DIR: "/var/lib/quarkdb/eosns"
|
|
EOS_QDB_PORT: "7777"
|
|
EOS_QDB_MODE: "raft"
|
|
EOS_QDB_CLUSTER_ID: "3d659c1a-e70f-43f0-bed4-941a2ca0765b"
|
|
EOS_QDB_NODES: "quark-1.testnet:7777,quark-2.testnet:7777,quark-3.testnet:7777"
|
|
|
|
quark-3:
|
|
container_name: quark-3
|
|
image: owncloud/eos-qdb:4.8.26
|
|
tty: true
|
|
privileged: true
|
|
stdin_open: true
|
|
env_file:
|
|
- ./config/eos-docker.env
|
|
hostname: quark-3.testnet
|
|
networks:
|
|
- testnet
|
|
volumes:
|
|
- eos-quarkdb3:/var/lib/quarkdb
|
|
environment:
|
|
EOS_QDB_DIR: "/var/lib/quarkdb/eosns"
|
|
EOS_QDB_PORT: "7777"
|
|
EOS_QDB_MODE: "raft"
|
|
EOS_QDB_CLUSTER_ID: "3d659c1a-e70f-43f0-bed4-941a2ca0765b"
|
|
EOS_QDB_NODES: "quark-1.testnet:7777,quark-2.testnet:7777,quark-3.testnet:7777"
|
|
|
|
volumes:
|
|
eos-mgm-master-log:
|
|
eos-mgm-master-config:
|
|
eos-mgm-master-ns-queue:
|
|
eos-mq-master-log:
|
|
eos-mq-master-config:
|
|
eos-mq-master-ns-queue:
|
|
eos-fst-log:
|
|
eos-fst-disks:
|
|
eos-quarkdb1:
|
|
eos-quarkdb2:
|
|
eos-quarkdb3:
|