Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated dockerfile and added docker-compose #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions etherpad-lite/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM node:9
FROM node:latest
MAINTAINER Tony Motakis <[email protected]>

ENV ETHERPAD_VERSION 1.6.5
ENV NODE_ENV production

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl unzip mysql-client node-pg postgresql-client && \
curl unzip mysql-client postgresql-client && \
rm -r /var/lib/apt/lists/*

RUN npm install pg

WORKDIR /opt/

RUN curl -SL \
Expand Down
28 changes: 28 additions & 0 deletions etherpad-lite/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "2"

services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: etherpad
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress123
volumes:
- ~/.data:/var/lib/mysql
etherpad:
build: .
depends_on:
- db
#image: tvelocity/etherpad-lite
links:
- db
restart: always
environment:
ETHERPAD_DB_HOST: db
ETHERPAD_DB_USER: root
ETHERPAD_DB_PASSWORD: rootpass
ETHERPAD_ADMIN_PASSWORD: admin
ports:
- 9001:9001