| 1 |
# Copyright 2023 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 |
context: . |
| 32 |
dockerfile: ./Dockerfile-dev |
| 33 |
restart: unless-stopped |
| 34 |
environment: |
| 35 |
ARCHIVISTA_LISTEN_ON: tcp://0.0.0.0:8082 |
| 36 |
ARCHIVISTA_ENABLE_SPIFFE: "false" |
| 37 |
ARCHIVISTA_STORAGE_BACKEND: BLOB |
| 38 |
ARCHIVISTA_FILE_DIR: /tmp/archivista/ |
| 39 |
ARCHIVISTA_FILE_SERVE_ON: :8081 |
| 40 |
ARCHIVISTA_BLOB_STORE_USE_TLS: "false" |
| 41 |
ARCHIVISTA_BLOB_STORE_CREDENTIAL_TYPE: ACCESS_KEY |
| 42 |
ARCHIVISTA_BLOB_STORE_ACCESS_KEY_ID: testifytestifytestify |
| 43 |
ARCHIVISTA_BLOB_STORE_SECRET_ACCESS_KEY_ID: exampleexampleexample |
| 44 |
ARCHIVISTA_BLOB_STORE_BUCKET_NAME: attestations |
| 45 |
ARCHIVISTA_BLOB_STORE_ENDPOINT: minio:9000 |
| 46 |
ARCHIVISTA_ENABLE_GRAPHQL: "true" |
| 47 |
ARCHIVISTA_GRAPHQL_WEB_CLIENT_ENABLE: "true" |
| 48 |
ARCHIVISTA_CORS_ALLOW_ORIGINS: "http://localhost:1234" |
| 49 |
|
| 50 |
ports: |
| 51 |
- 8081:8081 |
| 52 |
- 8082:8082 |
| 53 |
volumes: |
| 54 |
- fileserver:/tmp/archivista |
| 55 |
- ./:/src |
| 56 |
|
| 57 |
minio: |
| 58 |
image: quay.io/minio/minio |
| 59 |
restart: always |
| 60 |
command: server /data --console-address ":9001" |
| 61 |
ports: |
| 62 |
- 9000:9000 |
| 63 |
- 9001:9001 |
| 64 |
environment: |
| 65 |
MINIO_ROOT_USER: testifytestifytestify |
| 66 |
MINIO_ROOT_PASSWORD: exampleexampleexample |
| 67 |
volumes: |
| 68 |
- miniodata:/data |
| 69 |
|
| 70 |
minio-init: |
| 71 |
image: quay.io/minio/mc |
| 72 |
restart: on-failure |
| 73 |
command: mb --insecure --ignore-existing testminio/attestations |
| 74 |
environment: |
| 75 |
MC_HOST_testminio: http://testifytestifytestify:exampleexampleexample@minio:9000 |
| 76 |
|
| 77 |
volumes: |
| 78 |
fileserver: |
| 79 |
miniodata: |
| 80 |
mysqldata: |