Skip to content
s@.service 446 B
Newer Older
[Unit]
Description=%p-%i

# Requirements
Requires=docker.service

# Dependency ordering
After=docker.service

[Service]
Restart=always
RestartSec=10
TimeoutStartSec=60
TimeoutStopSec=15
Pierre Ozoux's avatar
Pierre Ozoux committed
EnvironmentFile=-/system/%i/env
Pierre Ozoux's avatar
Pierre Ozoux committed
Environment=HOSTNAME=%H
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