initial commit
This commit is contained in:
17
markdown-app.service
Normal file
17
markdown-app.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Markdown Renderer Docker Container
|
||||
Requires=docker.service
|
||||
After=docker.service network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/opt/markdown-app
|
||||
ExecStart=/usr/bin/docker-compose up -d
|
||||
ExecStop=/usr/bin/docker-compose down
|
||||
ExecReload=/usr/bin/docker-compose restart
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user