This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/Deployment/pwt.service
surtur 7abdd05701
add systemd service file and nginx config snippet
* setup considers deploying on dotya.ml but this can easily be changed
* [skip ci]
2021-02-22 12:54:30 +01:00

13 lines
357 B
SYSTEMD

[Unit]
Description=pwt
After=nginx.service docker.service
[Service]
Restart=on-failure
ExecStart=/usr/bin/docker-compose -f /etc/pwt/pwt-0x01-ng/docker-compose.prod.yml up --remove-orphans --build --scale netcoreultimateapp-prod=2
ExecStop=/usr/bin/docker-compose -f /etc/pwt/pwt-0x01-ng/docker-compose.prod.yml stop
[Install]
WantedBy=multi-user.target