|
1 | | -# |
2 | 1 | # This file is part of Edgehog. |
3 | 2 | # |
4 | | -# Copyright 2021-2025 SECO Mind Srl |
| 3 | +# Copyright 2021-2026 SECO Mind Srl |
5 | 4 | # |
6 | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 6 | # you may not use this file except in compliance with the License. |
|
16 | 15 | # limitations under the License. |
17 | 16 | # |
18 | 17 | # SPDX-License-Identifier: Apache-2.0 |
19 | | -# |
20 | 18 |
|
21 | 19 | services: |
22 | 20 | postgres: |
@@ -77,8 +75,8 @@ services: |
77 | 75 | - ${SEEDS_REALM_PRIVATE_KEY_FILE}:/keys/realm_private.pem:z |
78 | 76 | depends_on: |
79 | 77 | - postgres |
80 | | - - minio |
81 | | - - minio-init |
| 78 | + - rustfs |
| 79 | + - rustfs-init |
82 | 80 | labels: |
83 | 81 | - "traefik.enable=true" |
84 | 82 | - "traefik.http.routers.edgehog-backend.rule=Host(`api.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)" |
@@ -115,43 +113,44 @@ services: |
115 | 113 | - "traefik.http.routers.edgehog-device-forwarder.service=edgehog-device-forwarder" |
116 | 114 | - "traefik.http.services.edgehog-device-forwarder.loadbalancer.server.port=4001" |
117 | 115 |
|
118 | | - minio: |
119 | | - image: minio/minio:RELEASE.2023-01-18T04-36-38Z |
| 116 | + rustfs: |
| 117 | + image: rustfs/rustfs:latest |
120 | 118 | volumes: |
121 | | - - "minio-data-v2:/data" |
| 119 | + - "rustfs-data-v2:/data" |
122 | 120 | environment: |
123 | | - MINIO_ROOT_USER: "minioadmin" |
124 | | - MINIO_ROOT_PASSWORD: "minioadmin" |
125 | | - command: server --console-address ":9001" /data |
| 121 | + RUSTFS_ACCESS_KEY: "rustfsadmin" |
| 122 | + RUSTFS_SECRET_KEY: "rustfsadmin" |
| 123 | + RUSTFS_CONSOLE_ENABLE: true |
| 124 | + command: /data |
126 | 125 | labels: |
127 | 126 | - "traefik.enable=true" |
128 | | - - "traefik.http.routers.edgehog-minio-storage.rule=Host(`minio-storage.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)" |
129 | | - - "traefik.http.routers.edgehog-minio-storage.entrypoints=web" |
130 | | - - "traefik.http.routers.edgehog-minio-storage.service=edgehog-minio-storage" |
131 | | - - "traefik.http.services.edgehog-minio-storage.loadbalancer.server.port=9000" |
132 | | - - "traefik.http.routers.edgehog-minio-console.rule=Host(`minio.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)" |
133 | | - - "traefik.http.routers.edgehog-minio-console.entrypoints=web" |
134 | | - - "traefik.http.routers.edgehog-minio-console.service=edgehog-minio-console" |
135 | | - - "traefik.http.services.edgehog-minio-console.loadbalancer.server.port=9001" |
| 127 | + - "traefik.http.routers.edgehog-rustfs-storage.rule=Host(`rustfs-storage.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)" |
| 128 | + - "traefik.http.routers.edgehog-rustfs-storage.entrypoints=web" |
| 129 | + - "traefik.http.routers.edgehog-rustfs-storage.service=edgehog-rustfs-storage" |
| 130 | + - "traefik.http.services.edgehog-rustfs-storage.loadbalancer.server.port=9000" |
| 131 | + - "traefik.http.routers.edgehog-rustfs-console.rule=Host(`rustfs.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)" |
| 132 | + - "traefik.http.routers.edgehog-rustfs-console.entrypoints=web" |
| 133 | + - "traefik.http.routers.edgehog-rustfs-console.service=edgehog-rustfs-console" |
| 134 | + - "traefik.http.services.edgehog-rustfs-console.loadbalancer.server.port=9001" |
136 | 135 |
|
137 | | - minio-init: |
| 136 | + rustfs-init: |
138 | 137 | image: minio/mc:RELEASE.2023-01-11T03-14-16Z |
139 | 138 | depends_on: |
140 | | - - minio |
| 139 | + - rustfs |
141 | 140 | entrypoint: | |
142 | 141 | /bin/sh -c " |
143 | | - while ! curl -s http://minio:9000 >/dev/null; do sleep 0.1; done; |
144 | | - /usr/bin/mc alias set minio http://minio:9000 minioadmin minioadmin; |
145 | | - /usr/bin/mc mb minio/edgehog; |
146 | | - /usr/bin/mc anonymous set download minio/edgehog; |
| 142 | + while ! curl -s http://rustfs:9000 >/dev/null; do sleep 0.1; done; |
| 143 | + /usr/bin/mc alias set rustfs http://rustfs:9000 rustfsadmin rustfsadmin; |
| 144 | + /usr/bin/mc mb rustfs/edgehog; |
| 145 | + /usr/bin/mc anonymous set download rustfs/edgehog; |
147 | 146 | exit 0; |
148 | 147 | " |
149 | 148 |
|
150 | 149 | registry: |
151 | 150 | image: registry:3 |
152 | 151 | restart: on-failure |
153 | 152 | environment: |
154 | | - REGISTRY_AUTH: htpasswd |
| 153 | + REGISTRY_AUTH: htpasswdocker run minio/mc ls playd |
155 | 154 | REGISTRY_AUTH_HTPASSWD_REALM: Registry-Realm |
156 | 155 | REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.passwd |
157 | 156 | REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data |
@@ -218,7 +217,7 @@ configs: |
218 | 217 | volumes: |
219 | 218 | postgres-data: |
220 | 219 | pgadmin-data: |
221 | | - minio-data-v2: |
| 220 | + rustfs-data-v2: |
222 | 221 | driver: local |
223 | 222 | registry-auth: |
224 | 223 | registry-data: |
|
0 commit comments