--- x-logging: &default-logging driver: syslog options: tag: "container_name/{{.Name}}" labels: "LABEL" syslog-facility: local7 x-opt-values: &volume-opt driver_opts: &options type: "nfs" o: "addr=${IP},rw" services: service-name: image: container_name: depends_on: hostname: labels: restart: cap_add: - security_opt: - command: - environment: X: ${X} env_file: - ports: - "" volumes: - networks: - ulimits: logging: *default-logging volumes: volume: <<: *volume-opt driver_opts: <<: *options device: ":/mnt/path" networks: network: name: network_name external: true