minio
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
MINIO_ACCESS_KEY="minio"
|
||||||
|
MINIO_VOLUMES="/usr/local/share/minio/"
|
||||||
|
MINIO_OPTS="-C /etc/minio --address :9000"
|
||||||
|
MINIO_SECRET_KEY="miniostorage"
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=MinIO
|
||||||
|
Documentation=https://docs.min.io
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
AssertFileIsExecutable=/usr/local/bin/minio
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/usr/local/
|
||||||
|
|
||||||
|
User=minio-user
|
||||||
|
Group=minio-user
|
||||||
|
|
||||||
|
EnvironmentFile=/etc/default/minio
|
||||||
|
ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
|
||||||
|
|
||||||
|
ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
|
||||||
|
|
||||||
|
# Let systemd restart this service always
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
# Specifies the maximum file descriptor number that can be opened by this process
|
||||||
|
LimitNOFILE=65536
|
||||||
|
|
||||||
|
# Specifies the maximum number of threads this process can create
|
||||||
|
TasksMax=infinity
|
||||||
|
|
||||||
|
# Disable timeout logic and wait until process is stopped
|
||||||
|
TimeoutStopSec=infinity
|
||||||
|
SendSIGKILL=no
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
# Built for ${project.name}-${project.version} (${project.name})
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
# Installing editoria on debian 10 for production
|
# Installing editoria on debian 10 for production
|
||||||
|
|
||||||
|
## Docker
|
||||||
|
```
|
||||||
|
apt-get install docker
|
||||||
|
```
|
||||||
|
|
||||||
## postgres
|
## postgres
|
||||||
|
|
||||||
@@ -58,3 +62,48 @@ createdb icmldb -O icml
|
|||||||
docker pull cokoapps/icml:1.1.0
|
docker pull cokoapps/icml:1.1.0
|
||||||
docker run -d -t -i -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=9003 -e SERVER_HOST=localhost -e SERVER_PROTOCOL=http -e POSTGRES_USER=icml -e POSTGRES_PASSWORD=SUPERMOTDEPASSE -e POSTGRES_HOST=localhost -e POSTGRES_DB=icmldb -e POSTGRES_PORT=5432 -e NODE_ENV=production --name icml cokoapps/icml:1.1.0
|
docker run -d -t -i -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=9003 -e SERVER_HOST=localhost -e SERVER_PROTOCOL=http -e POSTGRES_USER=icml -e POSTGRES_PASSWORD=SUPERMOTDEPASSE -e POSTGRES_HOST=localhost -e POSTGRES_DB=icmldb -e POSTGRES_PORT=5432 -e NODE_ENV=production --name icml cokoapps/icml:1.1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## epubchecker
|
||||||
|
|
||||||
|
### postgresql db
|
||||||
|
```sh
|
||||||
|
su - porstgres
|
||||||
|
createuser epubchecker
|
||||||
|
psql -c "alter user epubchecker with encrypted password 'SUPERMOTDEPASSE';"
|
||||||
|
createdb epubcheckerdb -O epubchecker
|
||||||
|
```
|
||||||
|
|
||||||
|
### epubchecker
|
||||||
|
```sh
|
||||||
|
docker pull cokoapps/epubchecker:1.1.0
|
||||||
|
docker run -d -t -i -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=9004 -e POSTGRES_USER=epubchecker -e POSTGRES_PASSWORD=SUPERMOTDEPASSE -e POSTGRES_HOST=localhost -e POSTGRES_DB=epubcheckerdb -e POSTGRES_PORT=5432 -e NODE_ENV=production --name epubchecker cokoapps/epubchecker:1.1.0
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## minio file server
|
||||||
|
|
||||||
|
https://metal.equinix.com/developers/guides/minio/
|
||||||
|
|
||||||
|
```sh
|
||||||
|
wget https://dl.min.io/server/minio/release/linux-amd64/minio_20210422154428.0.0_amd64.deb
|
||||||
|
dpkg -i minio_20210422154428.0.0_amd64.deb
|
||||||
|
|
||||||
|
useradd -r minio-user -s /sbin/nologin
|
||||||
|
mkdir /usr/local/share/minio/
|
||||||
|
chown minio-user:minio-user /usr/local/share/minio/
|
||||||
|
|
||||||
|
echo 'MINIO_ACCESS_KEY="minio"
|
||||||
|
MINIO_VOLUMES="/usr/local/share/minio/"
|
||||||
|
MINIO_OPTS="-C /etc/minio --address :9000"
|
||||||
|
MINIO_SECRET_KEY="miniostorage"' > /etc/default/minio
|
||||||
|
|
||||||
|
mkdir /etc/minio
|
||||||
|
|
||||||
|
wget -P /etc/systemd/system/ https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable minio
|
||||||
|
systemctl start minio
|
||||||
|
|
||||||
|
# MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=YOURPASSWORD minio server /mnt/data
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user