diff --git a/swarm/services.yml b/swarm/services.yml index e71e720..789fb3e 100644 --- a/swarm/services.yml +++ b/swarm/services.yml @@ -122,9 +122,9 @@ services: - "no-new-privileges:true" image: rustfs/rustfs:latest container_name: rustfs-server - ports: - - "9000:9000" # S3 API port - - "9001:9001" # Console port + expose: + - "9000" # S3 API port + - "9001" # Console port environment: - RUSTFS_VOLUMES=/data/rustfs{0..3} # Define 4 storage volumes - RUSTFS_ADDRESS=0.0.0.0:9000