75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
minio:
|
|
image: quay.io/minio/minio:latest
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: root
|
|
MINIO_ROOT_PASSWORD: squirtle123
|
|
MINIO_SERVER_URL: https://io.baked.rocks
|
|
MINIO_BROWSER_REDIRECT_URL: https://io.baked.rocks/console/
|
|
MINIO_ACCESS_KEY_FILE: access_key
|
|
MINIO_SECRET_KEY_FILE: secret_key
|
|
MINIO_ROOT_USER_FILE: access_key
|
|
MINIO_ROOT_PASSWORD_FILE: secret_key
|
|
MINIO_KMS_SECRET_KEY_FILE: kms_master_key
|
|
MINIO_UPDATE_MINISIGN_PUBKEY: RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav
|
|
MINIO_CONFIG_ENV_FILE: config.env
|
|
MC_CONFIG_DIR: /tmp/.mc
|
|
volumes:
|
|
- minio-data:/data
|
|
- minio-config:/root/.minio
|
|
networks:
|
|
- public
|
|
- badge-net
|
|
- gitea_gitea
|
|
- net
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == crackbox
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
max_attempts: 3
|
|
# labels:
|
|
# - "traefik.enable=true"
|
|
# - "traefik.swarm.network=public"
|
|
# - "traefik.http.routers.mainio-api.entrypoints=web"
|
|
# - "traefik.http.routers.mainio-api.rule=Host(`mainio.lab`)"
|
|
# - "traefik.http.routers.mainio-api.service=minio-api"
|
|
# - "traefik.http.routers.mainio-console.entrypoints=web"
|
|
# - "traefik.http.routers.mainio-console.rule=Host(`mainio.lab`) && PathPrefix(`/console`)"
|
|
# - "traefik.http.routers.mainio-console.service=minio-console"
|
|
# - "traefik.http.routers.mainio-console.middlewares=mainio-stripprefix"
|
|
# - "traefik.http.middlewares.mainio-stripprefix.stripprefix.prefixes=/console"
|
|
# - "traefik.http.services.minio-api.loadbalancer.server.port=9000"
|
|
# - "traefik.http.services.minio-console.loadbalancer.server.port=9001"
|
|
|
|
volumes:
|
|
minio-data:
|
|
external: true
|
|
name: minio-data
|
|
minio-config:
|
|
external: true
|
|
name: minio-config
|
|
|
|
networks:
|
|
public:
|
|
external: true
|
|
badge-net:
|
|
external: true
|
|
gitea_gitea:
|
|
external: true
|
|
net:
|
|
driver: overlay
|
|
attachable: true
|
|
internal: true
|