Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (82 sloc) 2.7 KB
# Docker image settings.
# Required.
container:
# Image name to start on worker.
# Required.
image: httpd@sha256:b5f21641a9d7bbb59dc94fb6a663c43fbf3f56270ce7c7d51801ac74d2e70046
# Public SSH key providing which opens a capability to login into the
# container using SSH.
# Optional.
ssh_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE8axoFpym0R6A6BdgnpKhHB//h0iCiNUuFqwk0jSONvvLseoVpVE5l45tehlxSbaJrTQkgNoGGpEljJXxLQFkyQMZMga+x8uzCxrG39DkPz6sCjefix3x23IlPsU6/LDs/9g6XTLHLhTnmbU4F8qZ7cxa1ikB0IQ+tifUrhvrmXW2QICA0VmUu1Skhxf0BBKPdM0ksFkRaKGa0PmZHlS6h/8MLwI7NLWC/vp+yj7LAbNcOfaDTJGoDUIPHmGyOEA8fTqTrgZqFtLUT2jgYyDH0lL5H4z1Nd5Zy5Ste0pcqXUoomo2fxD4Utz64wtDCYOueTUMeIVmDS441s5dGTQ9"
# Env variables that will be passed to container on start.
# Optional.
env:
param1: value1
param2: value2
# Adds an ability to pull container back.
# Optional.
commit_on_stop: true
# Push the committed image to remote repository (works only if commit_on_stop is set to `true`).
# Optional.
push_on_stop: false
# Volumes settings.
# Optional.
volumes:
# Volume name. It is used as a host entry point when describing mounts in
# the section below.
cifs:
# Volume driver type.
type: cifs
# Volume driver specific options.
options:
share: samba-host.ru/share
username: username
password: password
security: ntlm
vers: 3.0
btfs:
type: btfs
options:
magnet: "magnet:?xt=urn:xxxxxxxxxx"
# Mount settings describes how to mount volumes specified above in the
# container.
# Format is "VOLUME_NAME:PATH:PERM".
# Optional.
mounts:
- cifs:/mnt:rw
- cifs:/opt:rw
- btfs:/mnt-btfs:ro
# Overlay network settings.
# Optional.
networks:
- type: tinc
subnet: "10.20.30.0/24"
# Expose container ports if public ip is provided in deal. Format is "public_ip:public_port:private_port/protocol".
# Protocol can be "tcp", "udp", "sctp".
# If the "protocol" parameter is ommited "tcp" is implied.
# If the "public_ip" parameter is ommited then the port is being exposed on all available ips.
expose:
- 8080:80
# Custom registry settings.
# Optional.
registry:
# If not empty, Worker will use given registry to pull an image from.
# Optional.
server_address: registry.user.io
# Registry username.
# Optional.
username: name
# Registry password.
# Optional.
password: secret
# Resource limitations and restrictions.
resources:
# Required GPUs for a task.
# GPUs are provided exclusively for each task - sharing is forbidden.
# If a task requires no GPU, specify an empty list.
gpu:
hashes: []
indexes: []
# Additional user-specific information attached to a task.
# Optional.
tag: "some"