This report provides a detailed walk-through of our process to deploy an instance of Etherpad on Oracle Cloud using Docker. We discuss the steps involved from cloning the Etherpad repository, configuring it, building a personalized Docker image and creating a Docker Compose file for the Etherpad and MariaDB containers.
- Introduction
- Pre-requisites
- Cloning the Etherpad Repository
- Configuration of the Etherpad
- Building the Docker Image
- Creating the Docker Compose File
- Deploying Etherpad on Oracle Cloud
- Accessing the Etherpad Instance
- Conclusion
In this report, we outline the steps we took to deploy an Etherpad instance on Oracle Cloud using Docker. This is a simple Overview of the full project:
Before beginning the deployment, we ensured that the following requirements were met.
- A Cloud Provider account
we used Oracle Cloud because it offers good free tier options.
- A VM with Docker installed (recommended Alpine Linux).
After login in our VM instance, we started by cloning the Etherpad repository from Github.
git clone https://github.com/ether/etherpad-lite.git
We then modified the configuration file to suit our needs:
- Enable the authentication system
We added the authentication and a new user
We built a Docker image:
docker build --tag personalized/etherpad .
Next, we created a Docker Compose file to manage our Etherpad and MariaDB containers.
We added the official MariaDB container and the environment variables
The
depends_on
option in your Docker Compose specifies that theetherpad
service is started after thedb
service.
Note: Docker Compose automatically sets up a network for each service and each one is reachable at a hostname identical to the service name. So, in this case,
db
is the hostname that theetherpad
service uses to connect to the database.
We then deployed the Etherpad instance on Oracle Cloud machine:
docker-compose up -d
To access the deployed Etherpad instance, navigate to the service http://129.151.251.123:9001/ in your web browser.
In this report, we drafted a the process to deploy a simple Etherpad instance and provided instructions on how to access it.