Added docker, nginx and systemd configs

This commit is contained in:
ftc
2022-12-11 18:53:19 +03:00
commit 8d4f7690fc
5 changed files with 90 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=glade_site
Requires=docker.service
After=docker.service
[Service]
Restart=always
User=root
Group=docker
WorkingDirectory=/mnt/storage/glade/glade_docker
# Shutdown container (if running) when unit is started
ExecStartPre=/usr/bin/docker compose -f docker-compose.yml down
# Start container when unit is started
ExecStart=/usr/bin/docker compose -f docker-compose.yml up
# Stop container when unit is stopped
ExecStop=/usr/bin/docker compose -f docker-compose.yml down
[Install]
WantedBy=multi-user.target