Created
May 15, 2018 11:34
-
-
Save ShockwaveNN/f637be28de3ea6a771869957f23b6b77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:18.04 | |
| MAINTAINER Pavel.Lobashov "[email protected]" | |
| RUN apt-get update && apt-get install -y curl sudo | |
| RUN sudo apt-get update && sudo apt-get install -y postgresql | |
| RUN sudo apt-get -y install npm | |
| RUN service postgresql start && \ | |
| sudo -u postgres psql -c "CREATE DATABASE onlyoffice;" && \ | |
| sudo -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" && \ | |
| sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" | |
| RUN sudo apt-get update && sudo apt-get install -y redis-server | |
| RUN sudo apt-get update && sudo apt-get install -y rabbitmq-server | |
| RUN sudo echo "deb [trusted=yes] http://repo-doc-onlyoffice-com.s3.amazonaws.com/ubuntu/trusty/onlyoffice-documentserver-ie/origin/hotfix/v5.1.4/latest/ repo/" | sudo tee /etc/apt/sources.list.d/onlyoffice.list | |
| RUN echo onlyoffice-documentserver-ie onlyoffice/db-pwd select onlyoffice | sudo debconf-set-selections | |
| RUN service postgresql start && \ | |
| sudo apt-get update && sudo apt-get -y install onlyoffice-documentserver-ie | |
| CMD service postgresql start && \ | |
| service rabbitmq-server start && \ | |
| service redis-server start && \ | |
| service nginx start && \ | |
| service supervisor start && \ | |
| supervisorctl start onlyoffice-documentserver:example && \ | |
| bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment