-
|
I found redis service in docker-compose.yml, but i cannot found how to set like services:
# RustFS main service
rustfs:
image: rustfs/rustfs:latest
restart: always
ports:
- "9000:9000" # S3 API port
- "39001:9001" # Console port
environment:
- RUSTFS_VOLUMES=/data/rustfs{0...3} # Define 4 storage volumes
- RUSTFS_ADDRESS=0.0.0.0:9000
- RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
- RUSTFS_CONSOLE_ENABLE=true
- RUSTFS_EXTERNAL_ADDRESS=:9000 # Same as internal since no port mapping
- RUSTFS_CORS_ALLOWED_ORIGINS=*
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
- RUSTFS_ACCESS_KEY=rustfsadmin
- RUSTFS_SECRET_KEY=rustfsadmin
# like this ?
- REDIS_URL=rustfs-redis:6379
volumes:
- rustfs_data:/data
- rustfs_logs:/app/logs
security_opt:
- "no-new-privileges:true"
networks:
- rustfs-network
healthcheck:
test:
[
"CMD",
"sh", "-c",
"curl -f http://localhost:9000/health && curl -f http://localhost:9001/rustfs/console/health"
]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
# i change redis service host
rustfs-redis:
image: redis:7-alpine
restart: always
volumes:
- redis_data:/data
networks:
- rustfs-network
networks:
rustfs-network:
|
Beta Was this translation helpful? Give feedback.
Answered by
majinghe
Dec 6, 2025
Replies: 1 comment
-
|
@seepine Already confirmed, redis part is useless, will delete the content later. So please ignore it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
seepine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@seepine Already confirmed, redis part is useless, will delete the content later. So please ignore it.