Skip to content

Compose compatibility

Josef Gabrielsson edited this page Mar 13, 2022 · 41 revisions

Podman Compose is defined by the Compose Specification.
The following specifications below define a unified 2.x and 3.x file format, whose properties are inherited from both formats.

  • blkio_config
    • device_read_bps
    • device_write_bps
    • device_read_iops
    • device_write_iops
    • weight
    • weight_device
  • build
    • context
    • dockerfile
    • args
    • cache_from
    • extra_hosts
    • isolation
    • labels
    • network
    • shm-size
    • target
  • cap_add
  • cap_drop
  • cgroup_parent
  • command
  • container_name
  • cpu_rt_runtime
  • cpu_rt_period
  • device_cgroup_rules
  • devices
  • depends_on
  • dns
  • dns_opt
  • dns_search
  • entrypoint
  • env_file
  • environment
  • expose
  • extends
  • external_links
  • extra_hosts
  • group_add
  • healthcheck
    • test
    • interval
    • timeout
    • retries
    • start_period
  • image
  • init
  • isolation
  • labels
  • links
  • logging
  • network_mode
  • networks
    • aliases
    • ipv4_address
    • ipv6_address
    • link_local_ips
    • priority
  • pid
  • pids_limit
  • platform
  • ports
    • Short syntax
    • Long syntax
  • runtime
  • scale
  • secrets
    • Short syntax
    • Long syntax
  • security_opt
  • stop_grace_period
  • stop_signal
  • storage_opt
  • sysctls
  • tmpfs
  • ulimits
    • core
    • data
    • fsize
    • memlock
    • nofile
    • rss
    • stack
    • cpu
    • nproc
    • as
    • maxlogins
    • maxsyslogins
    • priority
    • locks
    • sigpending
    • msgqueue
    • nice
    • rtprio
    • chroot
  • userns_mode
  • volumes
    • Short syntax
    • Long syntax
  • volume_driver
  • volumes_from
  • restart
  • cpu_count
  • cpu_percent
  • cpu_shares
  • cpu_period
  • cpu_quota
  • cpus
  • cpuset
  • domainname
  • hostname
  • ipc
  • mac_address
  • mem_limit
  • memswap_limit
  • mem_swappiness
  • mem_reservation
  • oom_kill_disable
  • oom_score_adj
  • privileged
  • read_only
  • shm_size
  • stdin_open
  • tty
  • user
  • working_dir
  • us
  • ms
  • s
  • m
  • h
  • b
  • k
  • m
  • g
  • kb
  • mb
  • gb
  • driver
  • driver_opts
  • external
  • labels
  • name
  • driver
  • driver_opts
  • enable_ipv6
  • ipam
  • internal
  • labels
  • external
  • name
  • ${VARIABLE:-default}
  • ${VARIABLE-default}
  • ${VARIABLE:?err}
  • ${VARIABLE?err}
  • YAML anchors
  • YAML merge type