17 lines
346 B
SYSTEMD
17 lines
346 B
SYSTEMD
[Unit]
|
|
Description=Website (Compose Service)
|
|
Requires=docker.service
|
|
After=docker.service
|
|
|
|
[Service]
|
|
WorkingDirectory=/opt/website
|
|
ExecStart=/usr/bin/docker-compose --project-name website up
|
|
ExecStop=/usr/bin/docker-compose --project-name website down
|
|
TimeoutStartSec=0
|
|
Restart=on-failure
|
|
StartLimitBurst=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|