pub struct ServiceConfig {
pub image: String,
pub build: Option<BuildConfig>,
pub ports: Option<Vec<String>>,
pub environment: Option<HashMap<String, String>>,
pub volumes: Option<Vec<String>>,
pub networks: Option<Vec<String>>,
pub depends_on: Option<Vec<String>>,
pub healthcheck: Option<HealthCheckConfig>,
pub command: Option<String>,
}Expand description
Docker service configuration
Fields§
§image: StringDocker image to use for this service
build: Option<BuildConfig>Build configuration if building from source
ports: Option<Vec<String>>Port mappings in format “host:container”
environment: Option<HashMap<String, String>>Environment variables for the service
volumes: Option<Vec<String>>Volume mounts for persistent data
networks: Option<Vec<String>>Networks this service is attached to
depends_on: Option<Vec<String>>Service dependencies (start order)
healthcheck: Option<HealthCheckConfig>Health check configuration
command: Option<String>Override default command
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceConfig
impl Debug for ServiceConfig
Source§impl<'de> Deserialize<'de> for ServiceConfig
impl<'de> Deserialize<'de> for ServiceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnwindSafe for ServiceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more