forked from groundnuty/onedata-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose-oneprovider.yml
88 lines (86 loc) · 3.41 KB
/
docker-compose-oneprovider.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '2.0'
services:
node1.oneprovider:
image: onedata/oneprovider:18.02.1
hostname: node1.oneprovider
# dns: 8.8.8.8 # uncomment if container can't ping any domain
container_name: oneprovider-1
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
# configuration persistence
- "${ONEPROVIDER_CONFIG_DIR}:/volumes/persistence"
# Default configuration override
- "${PWD}/op-worker-overlay.config:/etc/op_worker/overlay.config"
- "${PWD}/op-panel-overlay.config:/etc/op_panel/overlay.config"
# data persistence
- "${ONEPROVIDER_DATA_DIR}:/volumes/storage"
# Server SSL certificates
#- "${OP_PRIV_KEY_PATH}:/etc/op_panel/certs/web_key.pem"
#- "${OP_CERT_PATH}:/etc/op_panel/certs/web_cert.pem"
#- "${OP_CHAIN_PATH}:/etc/op_panel/certs/web_chain.pem"
# Additional, trusted CA certificates (any filename is accepted)
#- "${OP_CACERTS_PATH}:/etc/op_panel/cacerts/customCaBundle.pem"
networks:
- scenario2
environment:
#ONEPANEL_DEBUG_MODE: "true" # prevents container exit on configuration error
ONEPANEL_LOG_LEVEL: "none" # prints logs to stdout (possible values: none, debug, info, error), by default set to info
ONEPANEL_BATCH_MODE: "true"
# If enabled, a new web cert will be generated with CN matching the
# ONEPANEL_GENERATED_CERT_DOMAIN and signed by OnedataTestWebServerCa
# NOTE: The generation will be performed upon every startup, any
# existing certs will be backed up and placed in the same directory.
# WARNING: This functionality is devised for test purposes and must not
# be used in production.
ONEPANEL_GENERATE_TEST_WEB_CERT: "true" # default: false
# The generated test web cert will be issued for below domain.
ONEPANEL_GENERATED_CERT_DOMAIN: "node1.oneprovider" # default: ""
# If enabled, onepanel will trust any server that has a cert signed by
# the OnedataTestWebServerCa.
# WARNING: This functionality is devised for test purposes and must not
# be used in production.
ONEPANEL_TRUST_TEST_CA: "true" # default: false
ONEPROVIDER_CONFIG: |
cluster:
domainName: "oneprovider"
nodes:
n1:
hostname: "node1"
managers:
mainNode: "n1"
nodes:
- "n1"
workers:
nodes:
- "n1"
databases:
# Per node Couchbase cache size in MB for all buckets
serverQuota: 4096
# Per bucket Couchbase cache size in MB across the cluster
bucketQuota: 1024
nodes:
- "n1"
storages:
NFS:
type: "posix"
mountPoint: "/volumes/storage"
oneprovider:
register: true
name: "${PROVIDER_NAME}"
subdomainDelegation: false
domain: "node1.oneprovider" # OR DOCKER IP ADDRESS
adminEmail: "[email protected]"
geoLatitude: ${GEO_LATITUDE}
geoLongitude: ${GEO_LONGITUDE}
onezone:
domainName: "node1.onezone" # OR DOCKER IP ADDRESS
onepanel:
users:
"admin":
password: "password"
userRole: "admin"
"user":
password: "password"
userRole: "regular"
networks:
scenario2: