compose-website/unit-files/u@.service

23 lines
450 B
SYSTEMD
Raw Normal View History

2015-09-18 11:42:29 +00:00
[Unit]
Description=%p-%i
# Requirements
Requires=docker.service
# Dependency ordering
After=docker.service
[Service]
Restart=always
RestartSec=10
TimeoutStartSec=60
TimeoutStopSec=15
2016-02-25 11:43:51 +00:00
EnvironmentFile=-/data/domains/%i/env
2015-09-18 11:42:29 +00:00
WorkingDirectory=/data/domains/%i/
ExecStartPre=-/opt/bin/docker-compose rm -f
2016-08-06 12:01:53 +00:00
ExecStart=/bin/bash -euxc "VIRTUAL_HOST=%i /opt/bin/docker-compose up"
2015-09-18 11:42:29 +00:00
ExecStop=/opt/bin/docker-compose stop
[Install]
WantedBy=multi-user.target