Skip to content

Instantly share code, notes, and snippets.

@ShockwaveNN
Last active October 18, 2017 16:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShockwaveNN/3169b1f40df14f9c09865464847f4b2f to your computer and use it in GitHub Desktop.
Save ShockwaveNN/3169b1f40df14f9c09865464847f4b2f to your computer and use it in GitHub Desktop.
Onlyoffice Documentserver Debian-based Dockerfile
FROM debian:latest
RUN apt-get update && apt-get -y install curl sudo
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" | tee -a /etc/apt/sources.list
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get -y install postgresql redis-server rabbitmq-server
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
RUN echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | tee /etc/apt/sources.list.d/onlyoffice.list
RUN apt-get update
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;" && \
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
echo onlyoffice-documentserver onlyoffice/db-pwd password onlyoffice | debconf-set-selections && \
apt-get -y --force-yes install onlyoffice-documentserver
EXPOSE 80
CMD service postgresql start && \
service rabbitmq-server start && \
service redis-server start && \
service nginx start && \
service postgresql start && \
service supervisor restart && \
bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment