Debian Codegraph @

compose.yml

raw
1 # Copyright 2022 The Archivista Contributors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 version: '3.9'
16
17 services:
18 db:
19 image: mysql:oracle
20 restart: always
21 ports:
22 - 3306:3306
23 environment:
24 MYSQL_DATABASE: testify
25 MYSQL_ROOT_PASSWORD: example
26 volumes:
27 - mysqldata:/var/lib/mysql
28
29 archivista:
30 build: .
31 restart: unless-stopped
32 environment:
33 ARCHIVISTA_LISTEN_ON: tcp://0.0.0.0:8082
34 ARCHIVISTA_ENABLE_SPIFFE: "false"
35 ARCHIVISTA_STORAGE_BACKEND: BLOB
36 ARCHIVISTA_FILE_DIR: /tmp/archivista/
37 ARCHIVISTA_FILE_SERVE_ON: :8081
38 ARCHIVISTA_BLOB_STORE_USE_TLS: "false"
39 ARCHIVISTA_BLOB_STORE_CREDENTIAL_TYPE: ACCESS_KEY
40 ARCHIVISTA_BLOB_STORE_ACCESS_KEY_ID: testifytestifytestify
41 ARCHIVISTA_BLOB_STORE_SECRET_ACCESS_KEY_ID: exampleexampleexample
42 ARCHIVISTA_BLOB_STORE_BUCKET_NAME: attestations
43 ARCHIVISTA_BLOB_STORE_ENDPOINT: minio:9000
44 ARCHIVISTA_ENABLE_GRAPHQL: "true"
45 ARCHIVISTA_GRAPHQL_WEB_CLIENT_ENABLE: "true"
46 ARCHIVISTA_CORS_ALLOW_ORIGINS: "http://localhost:1234"
47
48 ports:
49 - 8081:8081
50 - 8082:8082
51 volumes:
52 - fileserver:/tmp/archivista
53
54 minio:
55 image: quay.io/minio/minio
56 restart: always
57 command: server /data --console-address ":9001"
58 ports:
59 - 9000:9000
60 - 9001:9001
61 environment:
62 MINIO_ROOT_USER: testifytestifytestify
63 MINIO_ROOT_PASSWORD: exampleexampleexample
64 volumes:
65 - miniodata:/data
66
67 minio-init:
68 image: quay.io/minio/mc
69 restart: on-failure
70 command: mb --insecure --ignore-existing testminio/attestations
71 environment:
72 MC_HOST_testminio: http://testifytestifytestify:exampleexampleexample@minio:9000
73
74 volumes:
75 fileserver:
76 miniodata:
77 mysqldata: