doc: add some sane defaults to template
This commit is contained in:
parent
4f18c17e0c
commit
ecb4c46483
1 changed files with 5 additions and 4 deletions
|
@ -5,16 +5,16 @@ Wants= # (Optional) Services you want to run with this one
|
||||||
After= # (Optional) Services that need to start before this one
|
After= # (Optional) Services that need to start before this one
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart= # (Optional) Set to 'always' or 'on-failure' to restart on failure
|
Restart=on-failure # (Optional) Set to 'always' or 'on-failure' to restart on failure
|
||||||
TimeoutStartSec= # (Optional) Time to wait before considering a failure
|
TimeoutStartSec=900 # (Optional) Time to wait before considering a failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy= # (Optional) Target to start with (default: multi-user.target). For graphical user interface systems default.target
|
WantedBy=default.target # (Optional) Target to start with (default: multi-user.target). For graphical user interface systems default.target
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image= # (Mandatory) The container image to use (e.g., docker.io/library/alpine)
|
Image= # (Mandatory) The container image to use (e.g., docker.io/library/alpine)
|
||||||
ContainerName= # (Mandatory) The container's name
|
ContainerName= # (Mandatory) The container's name
|
||||||
HostName= # (Optional) The containers hostname
|
AutoUpdate=registry
|
||||||
|
|
||||||
AddCapability= # (Optional) Extra capabilities to add to the container
|
AddCapability= # (Optional) Extra capabilities to add to the container
|
||||||
AddDevice= # (Optional) Add host devices to the container
|
AddDevice= # (Optional) Add host devices to the container
|
||||||
|
@ -25,6 +25,7 @@ UIDMap= # (Optional) User ID mapping. Example: 0:10000:10 (Inside:Outsid
|
||||||
GIDMap= # (Optional) Group ID mapping Example: 0:10000:10 (Inside:Outside:Range)
|
GIDMap= # (Optional) Group ID mapping Example: 0:10000:10 (Inside:Outside:Range)
|
||||||
|
|
||||||
Network= # (Optional) Custom network for the container
|
Network= # (Optional) Custom network for the container
|
||||||
|
HostName= # (Optional) The containers hostname
|
||||||
PublishPort= # (Optional) Ports to expose (host:container)
|
PublishPort= # (Optional) Ports to expose (host:container)
|
||||||
|
|
||||||
Volume= # (Optional) Persistent storage paths (host:container)
|
Volume= # (Optional) Persistent storage paths (host:container)
|
||||||
|
|
Loading…
Add table
Reference in a new issue