docs(install): cover Docker and native deployments
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Magent web frontend
|
||||
Wants=network-online.target magent-backend.service
|
||||
After=network-online.target magent-backend.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=magent
|
||||
Group=magent
|
||||
WorkingDirectory=/opt/magent/frontend
|
||||
EnvironmentFile=/etc/magent/frontend.env
|
||||
# If command -v node reports another system-wide path, update this line.
|
||||
ExecStart=/usr/bin/node /opt/magent/frontend/.next/standalone/server.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
TimeoutStopSec=30
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/opt/magent/frontend/.next/standalone/.next/cache
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user