added systemd service for editoria
This commit is contained in:
@@ -264,7 +264,27 @@ export SERVICE_XSWEET_PORT=9001
|
|||||||
' > .env
|
' > .env
|
||||||
|
|
||||||
docker-compose -f docker-compose.production.yml build
|
docker-compose -f docker-compose.production.yml build
|
||||||
docker-compose -f docker-compose.production.yml up
|
# docker-compose -f docker-compose.production.yml up
|
||||||
|
|
||||||
|
echo "
|
||||||
|
[Unit]
|
||||||
|
Description=%i editoria service with docker compose
|
||||||
|
Requires=docker.service minio.service postgresql.service
|
||||||
|
After=docker.service minio.service postgresql.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
RemainAfterExit=true
|
||||||
|
Restart=always
|
||||||
|
WorkingDirectory=/srv/editoria
|
||||||
|
ExecStart=/usr/local/bin/docker-compose -f docker-compose.production.yml up -d
|
||||||
|
ExecStop=/usr/local/bin/docker-compose down
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
" > /etc/systemd/system/editoria.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable editoria
|
||||||
|
systemctl start editoria
|
||||||
```
|
```
|
||||||
|
|
||||||
### cleaning docker
|
### cleaning docker
|
||||||
|
|||||||
Reference in New Issue
Block a user