# Installing editoria on debian 10 for production ## postgres ```sh apt install postgresql postgresql-client systemctl enable --now postgresql su - porstgres psql -c "ALTER USER postgres WITH password 'monsupermotdepasse'" ``` ## xsweet ### postgresql db ```sh su - porstgres createuser xsweet psql -c "alter user xsweet with encrypted password 'SUPERMOTDEPASSE';" createdb xsweetdb -O xsweet ``` ### xsweet ```sh docker pull cokoapps/xsweet:1.1.0 docker run -d -t -i -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 ``` ## pagedjs ### postgresql db ```sh su - porstgres createuser pagedjs psql -c "alter user pagedjs with encrypted password 'SUPERMOTDEPASSE';" createdb pagedjsdb -O pagedjs ``` ### pagedjs ```sh docker pull cokoapps/pagedjs:1.1.0 docker run -d -t -i -e PUBSWEET_SECRET=YOURSECRET -e SERVER_PORT=9002 -e SERVER_HOST=localhost -e SERVER_PROTOCOL=http -e POSTGRES_USER=pagedjs -e POSTGRES_PASSWORD=SUPERMOTDEPASSE -e POSTGRES_HOST=localhost -e POSTGRES_DB=pagedjsdb -e POSTGRES_PORT=5432 -e NODE_ENV=production --name pagedjs cokoapps/pagedjs:1.1.0 ``` ## icml ### postgresql db ```sh su - porstgres createuser icml psql -c "alter user icml with encrypted password 'SUPERMOTDEPASSE';" createdb icmldb -O icml ``` ### icml ```sh 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 ```