docker system prune

This commit is contained in:
2021-04-27 15:20:19 +02:00
parent 7375d60859
commit c8bbee73f7
+30 -5
View File
@@ -1,5 +1,7 @@
# Installing editoria on debian 10 for production
needs min 2Gb of memory and 150Gb of storage
## Docker
```
apt-get install docker
@@ -27,13 +29,18 @@ createdb xsweetdb -O xsweet
psql -c "grant all privileges on database xsweetdb to xsweet;"
```
### xsweet
### xsweet docker
```sh
docker pull cokoapps/xsweet:1.1.0
docker run -d -t -i --network=host -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=9001 -e SERVER_HOST=localhost -e SERVER_PROTOCOL=http -e POSTGRES_USER=xsweet -e POSTGRES_PASSWORD=SUPERMOTDEPASSE -e POSTGRES_HOST=localhost -e POSTGRES_DB=xsweetdb -e POSTGRES_PORT=5432 -e NODE_ENV=production --name xsweet cokoapps/xsweet:1.1.0
docker exec -it xsweet yarn create:client
```
### cleaning docker
```
docker system prune
```
## pagedjs
### postgresql db
@@ -52,6 +59,11 @@ docker run -d -t -i --network=host -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=
docker exec -it pagedjs yarn create:client
```
### cleaning docker
```
docker system prune
```
## icml
@@ -71,6 +83,11 @@ docker run -d -t -i --network=host -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=
docker exec -it icml yarn create:client
```
### cleaning docker
```
docker system prune
```
## epubchecker
### postgresql db
@@ -89,6 +106,11 @@ docker run -d -t -i --network=host -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=
docker exec -it epubchecker yarn create:client
```
### cleaning docker
```
docker system prune
```
## minio file server
@@ -197,9 +219,12 @@ export SERVICE_XSWEET_CLIENT_ID=ididididididididididididididididid
export SERVICE_XSWEET_SECRET=SUPERMOTDEPASSE
export SERVICE_XSWEET_PROTOCOL=http
export SERVICE_XSWEET_HOST=localhost
export SERVICE_XSWEET_PORT=9001' > config/production.env
export SERVICE_XSWEET_PORT=9001' > .env
docker-compose -f docker-compose.production.yml up --env-file ./config/production.env
docker-compose -f docker-compose.production.yml up
```
### cleaning docker
```
docker system prune
```