Skip to content

Commit

Permalink
chore: update minio and migrate data to new storage backend
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Sep 15, 2023
1 parent 78d607e commit 525c6ec
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ services:
ports:
- "9000:9000"

minio-legacy:
env_file: ./.envs/.local/.minio
ports:
- "9001:9000"

minio-migrate:
env_file: ./.envs/.local/.minio

mc:
env_file: ./.envs/.local/.minio

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ services:
env_file: ./.envs/.production/.minio
restart: unless-stopped

minio-legacy:
env_file: ./.envs/.production/.minio

minio-migrate:
env_file: ./.envs/.production/.minio

mc:
env_file: ./.envs/.production/.minio

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ services:
env_file: ./.envs/.staging/.minio
restart: unless-stopped

minio-legacy:
env_file: ./.envs/.staging/.minio

minio-migrate:
env_file: ./.envs/.staging/.minio

mc:
env_file: ./.envs/.staging/.minio

Expand Down
29 changes: 26 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,44 @@ services:
build:
context: ./ember/

minio:
minio-legacy:
image: minio/minio:RELEASE.2022-08-13T21-54-44Z
volumes:
- minio_data:/data
command: server data

minio:
image: minio/minio:RELEASE.2023-09-04T19-57-37Z
volumes:
- minio_data_snsd:/data
command: server data

mc:
image: minio/mc:RELEASE.2022-08-11T00-30-48Z
image: minio/mc:latest
restart: on-failure
entrypoint: >
/bin/sh -c "
mc config host add dc-minio http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} --api S3v4;
mc config host add dc-minio-legacy http://minio-legacy:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} --api S3v4;
mc config host add dc-minio http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} --api S3v4;
mc mb dc-minio/caluma-media;
mc mb dc-minio-legacy/caluma-media;
true"
depends_on:
- minio
- minio-legacy

minio-migrate:
image: minio/mc:latest
entrypoint: >
/bin/sh -c "
mc config host add dc-minio-legacy http://minio-legacy:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} --api S3v4;
mc config host add dc-minio http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} --api S3v4;
mc mirror dc-minio-legacy/caluma-media dc-minio/caluma-media;
"
depends_on:
- minio
- minio-legacy
- mc

dms:
image: ghcr.io/adfinis/document-merge-service:6.1.2
Expand All @@ -108,4 +130,5 @@ volumes:
caddy_data:
caddy_config:
minio_data:
minio_data_snsd:
templatefiles:

0 comments on commit 525c6ec

Please sign in to comment.