D
Dokploy5mo ago
max.d

minio not running start command on server restart

I have to redeploy minio every time server restarts. I used the included template with minor modifications to have letsencrypt work:
version: "3.8"
services:
minio:
image: minio/minio:RELEASE.2024-12-18T13-15-44Z
volumes:
- minio-data:/data
environment:
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
command: server /data --console-address ":9001"

labels:
- traefik.enable=true
- traefik.http.routers.${HASH}.service=${HASH}
- traefik.http.routers.${HASH}.rule=Host(`${MINIO_DASHBOARD_HOST}`)
# add the following two lines
- traefik.http.routers.${HASH}.entrypoints=websecure
- traefik.http.routers.${HASH}.tls.certresolver=letsencrypt
- traefik.http.services.${HASH}.loadbalancer.server.port=${MINIO_DASHBOARD_PORT}
# API router and service
- traefik.http.routers.${HASH}-api.service=${HASH}-api
- traefik.http.routers.${HASH}-api.rule=Host(`${MINIO_API_HOST}`)
# add the following two lines
- traefik.http.routers.${HASH}-api.entrypoints=websecure
- traefik.http.routers.${HASH}-api.tls.certresolver=letsencrypt
- traefik.http.services.${HASH}-api.loadbalancer.server.port=${MINIO_API_PORT}
#
# I set the cert resolver to `letsencrypt` because that's what I use;
# yours might be different. Check your Settings > Traefik FS > traefik.yml
volumes:
minio-data:
version: "3.8"
services:
minio:
image: minio/minio:RELEASE.2024-12-18T13-15-44Z
volumes:
- minio-data:/data
environment:
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
command: server /data --console-address ":9001"

labels:
- traefik.enable=true
- traefik.http.routers.${HASH}.service=${HASH}
- traefik.http.routers.${HASH}.rule=Host(`${MINIO_DASHBOARD_HOST}`)
# add the following two lines
- traefik.http.routers.${HASH}.entrypoints=websecure
- traefik.http.routers.${HASH}.tls.certresolver=letsencrypt
- traefik.http.services.${HASH}.loadbalancer.server.port=${MINIO_DASHBOARD_PORT}
# API router and service
- traefik.http.routers.${HASH}-api.service=${HASH}-api
- traefik.http.routers.${HASH}-api.rule=Host(`${MINIO_API_HOST}`)
# add the following two lines
- traefik.http.routers.${HASH}-api.entrypoints=websecure
- traefik.http.routers.${HASH}-api.tls.certresolver=letsencrypt
- traefik.http.services.${HASH}-api.loadbalancer.server.port=${MINIO_API_PORT}
#
# I set the cert resolver to `letsencrypt` because that's what I use;
# yours might be different. Check your Settings > Traefik FS > traefik.yml
volumes:
minio-data:
Does anyone know a fix for the restart issue?
No description
3 Replies
max.d
max.dOP5mo ago
For some reason tolgee is the same, everything else works as expected
No description
Harvey Specter
Harvey Specter5mo ago
you need to use restart: always in your docker compose file. Like this:
services:
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
ports:
- "25:25"
restart: always
services:
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
ports:
- "25:25"
restart: always
max.d
max.dOP5mo ago
FML thanks for noticing!

Did you find this page helpful?