-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
102 lines (97 loc) · 2.8 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
102 lines (97 loc) · 2.8 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright © 2024-2026 CRS4
# Copyright © 2025-2026 BSC
#
# This file is part of ProvStor.
#
# ProvStor is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# ProvStor is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ProvStor. If not, see <https://www.gnu.org/licenses/>.
services:
fuseki:
image: secoresearch/fuseki:5.5.0
user: "1000"
container_name: fuseki
ports:
- "3030:3030"
environment:
- ADMIN_PASSWORD=${FUSEKI_ADMIN_PASSWORD}
- ENABLE_DATA_WRITE=${ENABLE_DATA_WRITE}
- ENABLE_UPDATE=${ENABLE_UPDATE}
- ENABLE_SHACL=${ENABLE_SHACL}
- QUERY_TIMEOUT=${QUERY_TIMEOUT}
volumes:
- fuseki-data:/fuseki-base/databases
restart: "no"
seaweedfs-s3:
image: chrislusf/seaweedfs:4.17
container_name: seaweedfs-s3
ports:
- "8333:8333"
- "8888:8888"
entrypoint: /bin/sh -c
command: |
"echo '{
\"identities\": [
{
\"name\": \"anonymous\",
\"actions\": [
\"Read\"
]
},
{
\"name\": \"${SEAWEEDFS_USER}\",
\"credentials\": [
{
\"accessKey\": \"${SEAWEEDFS_ACCESS_KEY}\",
\"secretKey\": \"${SEAWEEDFS_SECRET_KEY}\"
}
],
\"actions\": [
\"Admin\",
\"Read\",
\"List\",
\"Tagging\",
\"Write\"
]
}
]
}' > /etc/seaweedfs/config.json && \
weed server -dir /s3data -s3 -s3.config /etc/seaweedfs/config.json -filer"
volumes:
- seaweedfs-data:/s3data
restart: no
api:
image: provstor-api:1.1
user: "1000"
build:
context: .
dockerfile: api.Dockerfile
container_name: provstor-api
ports:
- 8000:8000
environment:
- FUSEKI_BASE_URL=${FUSEKI_BASE_URL}
- FUSEKI_DATASET=${FUSEKI_DATASET}
- SEAWEEDFS_STORE=${SEAWEEDFS_STORE}
- SEAWEEDFS_FILER=${SEAWEEDFS_FILER}
- SEAWEEDFS_USER=${SEAWEEDFS_USER}
- SEAWEEDFS_ACCESS_KEY=${SEAWEEDFS_ACCESS_KEY}
- SEAWEEDFS_SECRET_KEY=${SEAWEEDFS_SECRET_KEY}
- SEAWEEDFS_BUCKET=${SEAWEEDFS_BUCKET}
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS}
depends_on:
- fuseki
- seaweedfs-s3
restart: "no"
pull_policy: never
volumes:
fuseki-data:
seaweedfs-data: