forked from onedata/getting-started
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-oneprovider.yml
64 lines (62 loc) · 1.91 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
version: '2.0'
services:
node1.oneprovider.localhost:
image: onedata/oneprovider:3.0.0-rc6
privileged: true
hostname: node1.oneprovider.localhost
# dns: 8.8.8.8 # uncomment if container can't ping any domain
container_name: oneprovider-1
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup"
- "/var/run/docker.sock:/var/run/docker.sock"
# configuration persistence
- "${ONEPROVIDER_CONFIG_DIR}:/volumes/persistence"
# data persistence
- "${ONEPROVIDER_DATA_DIR}:/volumes/storage"
# Oneprovider
#- "${OP_PRIV_KEY_PATH}:/volumes/persistence/etc/op_panel/certs/key.pem"
#- "${OP_CERT_PATH}:/volumes/persistence/etc/op_panel/certs/cert.pem"
#- "${OP_CACERT_PATH}:/volumes/persistence/etc/op_panel/certs/cacert.pem"
networks:
- scenario2
environment:
ONEPANEL_BATCH_MODE: "true"
ONEPROVIDER_CONFIG: |
cluster:
domainName: "oneprovider.localhost"
autoDeploy: true
nodes:
n1:
hostname: "node1"
managers:
mainNode: "n1"
nodes:
- "n1"
workers:
nodes:
- "n1"
databases:
nodes:
- "n1"
storages:
NFS:
type: "posix"
mountPoint: "/volumes/storage"
oneprovider:
register: true
name: "Example"
redirectionPoint: "https://node1.oneprovider.localhost" # OR DOCKER IP ADDRESS
geoLatitude: ${GEO_LATITUDE}
geoLongitude: ${GEO_LONGITUDE}
onezone:
domainName: "node1.onezone.localhost" # OR DOCKER IP ADDRESS
onepanel:
users:
"admin1":
password: "Password1"
userRole: "admin"
"user1":
password: "Password2"
userRole: "regular"
networks:
scenario2: