From Kromonos, 9 Months ago, written in Bash.
Embed
  1. #!/bin/bash
  2. # document.sh
  3. docker stop onlyoffice-document-server
  4. docker rm onlyoffice-document-server
  5. docker run -i -t -d --restart=always --name onlyoffice-document-server \
  6.     -p 127.0.0.1:8087:80 \
  7.     -p 127.0.0.1:8086:443 \
  8.     -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
  9.     -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
  10.     -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
  11.     -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql \
  12.     onlyoffice/documentserver
  13.  
  14. #!/bin/bash
  15. # mysql.sh
  16. docker stop onlyoffice-mysql-server
  17. docker rm onlyoffice-mysql-server
  18. docker run -i -t -d --restart=always --name onlyoffice-mysql-server -p 3398:3306 \
  19.  -v /app/onlyoffice/mysql/conf.d:/etc/mysql/conf.d \
  20.  -v /app/onlyoffice/mysql/data:/var/lib/mysql \
  21.  -v /app/onlyoffice/mysql/initdb:/docker-entrypoint-initdb.d \
  22.  -v /app/onlyoffice/mysql/logs:/var/log/mysql \
  23.  -e MYSQL_ROOT_PASSWORD=my-secret-pw \
  24.  -e MYSQL_DATABASE=onlyoffice \
  25.  mysql:5.7
  26.  
  27. #!/bin/bash
  28. # office.sh
  29. docker stop onlyoffice-community-server
  30. docker rm onlyoffice-community-server
  31. docker run -i -t -d --restart=always --name onlyoffice-community-server \
  32.  -p 127.0.0.1:8084:80 \
  33.  -p 127.0.0.1:8083:443 \
  34.  -p 5224:5222 \
  35.  --link onlyoffice-mysql-server \
  36.  --link onlyoffice-document-server \
  37.  -e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server \
  38.  -e MYSQL_SERVER_ROOT_PASSWORD=my-secret-pw \
  39.  -e MYSQL_SERVER_DB_NAME=onlyoffice \
  40.  -e MYSQL_SERVER_HOST=onlyoffice-mysql-server \
  41.  -e MYSQL_SERVER_USER=onlyoffice_user \
  42.  -e MYSQL_SERVER_PASS=onlyoffice_pass \
  43.  -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \
  44.  -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \
  45.  onlyoffice/communityserver
  46.  
  47. #!/bin/bash
  48. # start.sh
  49. bash mysql.sh
  50. bash document.sh
  51. bash office.sh
  52.