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

24 lines
446 B
SYSTEMD
Raw Normal View History

2016-02-11 10:34:14 +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=-/system/%i/env
2016-11-26 10:47:05 +00:00
Environment=HOSTNAME=%H
2016-02-11 10:34:14 +00:00
WorkingDirectory=/system/%i/
ExecStartPre=-/opt/bin/docker-compose rm -f
ExecStart=/bin/bash -euxc "/opt/bin/docker-compose up"
ExecStop=/opt/bin/docker-compose stop
[Install]
WantedBy=multi-user.target