Add nginx and systemd config files
This commit is contained in:
parent
5e2e146b65
commit
1b4cfec72c
2 changed files with 53 additions and 0 deletions
19
fxsync.service
Normal file
19
fxsync.service
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=Firefox sync server
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
User=jeena
|
||||
Group=docker
|
||||
WorkingDirectory=/home/jeena/fxsync.jeena.net
|
||||
# Shutdown container (if running) when unit is started
|
||||
ExecStartPre=/usr/bin/docker-compose -f docker-compose.yaml down
|
||||
# Start container when unit is started
|
||||
ExecStart=/usr/bin/docker-compose -f docker-compose.yaml up
|
||||
# Stop container when unit is stopped
|
||||
ExecStop=/usr/bin/docker-compose -f docker-compose.yaml down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue