Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Created April 19, 2022 22:14
Show Gist options
  • Save egeneralov/bf45ed706f8178a48975ffadc070b10b to your computer and use it in GitHub Desktop.
Save egeneralov/bf45ed706f8178a48975ffadc070b10b to your computer and use it in GitHub Desktop.
mkdir -p /opt/etherpad
cd /opt/etherpad
cat << EOF > docker-compose.yaml
version: '3.4'
services:
etherpad:
image: etherpad/etherpad
environment:
DB_TYPE: postgres
DB_HOST: postgresql
DB_PORT: 5432
DB_NAME: etherpad
DB_USER: etherpad
DB_PASS: etherpad
ADMIN_PASSWORD: supersecret
ports:
- '0.0.0.0:9001:9001'
networks:
etherpad:
postgresql:
image: postgres:13.1
environment:
POSTGRES_USER: etherpad
POSTGRES_PASSWORD: etherpad
networks:
etherpad:
networks:
etherpad:
driver: bridge
EOF
docker-compose pull
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment