17 lines
467 B
Django/Jinja
17 lines
467 B
Django/Jinja
[Unit]
|
|
Description=Weave proxy for Docker API
|
|
Documentation=http://docs.weave.works/
|
|
Wants=docker.socket
|
|
After=docker.service docker.socket
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/weave.%H.env
|
|
EnvironmentFile=-/etc/weave.env
|
|
ExecStartPre=-/usr/bin/docker rm -f weaveproxy
|
|
ExecStartPre={{ bin_dir }}/weave launch-proxy $WEAVEPROXY_ARGS
|
|
ExecStart=/usr/bin/docker attach weaveproxy
|
|
Restart=on-failure
|
|
ExecStop=/opt/bin/weave stop-proxy
|
|
|
|
[Install]
|
|
WantedBy=weave-network.target
|