docker systemd example

  • is there a system file I can use as a template im trying to get this docker addon to boot properly. https://hub.docker.com/r/haugene/transmission-openvpn/

    Ive run the container via command line and seems to work and there are instructions to boot via system included. This is what ive done but could like to check it before I try it.

    PS where are the docker system d files stored?[Unit]

    Description=haugene/transmission-openvpn docker container
    Requires=service.system.docker.service
    After=service.system.docker.service

    [Service]
    TimeoutStartSec=0
    ExecStart=docker run --cap-add=NET_ADMIN --device=/dev/net/tun --env-file=/storage/.config/transmission-openvpn/config/DockerEnv -d \
    --restart always \
    -v /storage/.config/transmission-openvpn/data:/data \
    -v /storage/.config/transmission-openvpn/config:/config \
    -v /var/media/EXTHDD/Downloads/Watch:/Watch \
    -v /var/media/EXTHDD/Downloads/Incomplete:/Incomplete \
    -v /var/media/EXTHDD/Downloads:/Downloads \
    -e PGID=0 -e PUID=0 \
    -e TZ=Europe/London \
    -p 9091:9091 \
    --dns 209.222.18.222 \
    --dns 209.222.18.218 \
    --name transmission-openvpn \
    haugene/transmission-openvpn

    [Install]
    WantedBy=multi-user.target