compose-website/unit-files/web-net.service

12 lines
253 B
SYSTEMD
Raw Normal View History

2016-12-23 07:38:20 +00:00
[Unit]
Description=Create lb_web network
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/bin/docker network create lb_web
ExecStop=/usr/bin/docker network rm lb_web
[Install]
WantedBy=local.target