1. use PartOf for proper dependency management; 2. add hard coded subnet, with specific ip for app; to use in ufw rules;
18 lines
336 B
Desktop File
18 lines
336 B
Desktop File
[Unit]
|
|
Description=fxreader.online-service
|
|
Requires=docker.service
|
|
After=docker.service
|
|
PartOf=docker.service
|
|
|
|
[Service]
|
|
#Type=oneshot
|
|
ExecStart=/usr/bin/docker compose up
|
|
ExecStop=/usr/bin/docker compose down
|
|
WorkingDirectory={{PROJECT_ROOT}}
|
|
StandardOutput=null
|
|
StandardError=null
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|