diff --git a/install/ubuntu.md b/install/ubuntu.md index 26ff8189..f86442a4 100644 --- a/install/ubuntu.md +++ b/install/ubuntu.md @@ -56,10 +56,10 @@ sudo apt -qqy -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-c ```bash # Create installation directory for Wiki.js -mkdir -p /etc/wiki +sudo mkdir -p /etc/wiki # Generate DB secret -openssl rand -base64 32 > /etc/wiki/.db-secret +sudo openssl rand -base64 32 > /etc/wiki/.db-secret # Create internal docker network docker network create wikinet @@ -68,8 +68,8 @@ docker network create wikinet docker volume create pgdata # Create the containers -docker create --name=db -e POSTGRES_DB=wiki -e POSTGRES_USER=wiki -e POSTGRES_PASSWORD_FILE=/etc/wiki/.db-secret -v /etc/wiki/.db-secret:/etc/wiki/.db-secret:ro -v pgdata:/var/lib/postgresql/data --restart=unless-stopped -h db --network=wikinet postgres:15 -docker create --name=wiki -e DB_TYPE=postgres -e DB_HOST=db -e DB_PORT=5432 -e DB_PASS_FILE=/etc/wiki/.db-secret -v /etc/wiki/.db-secret:/etc/wiki/.db-secret:ro -e DB_USER=wiki -e DB_NAME=wiki -e UPGRADE_COMPANION=1 --restart=unless-stopped -h wiki --network=wikinet -p 80:3000 -p 443:3443 ghcr.io/requarks/wiki:2 +docker create --name=db -e POSTGRES_DB=wiki -e POSTGRES_USER=wiki -e POSTGRES_PASSWORD_FILE=/etc/wiki/.db-secret -v /etc/wiki:/etc/wiki:ro -v pgdata:/var/lib/postgresql/data --restart=unless-stopped -h db --network=wikinet postgres:15 +docker create --name=wiki -e DB_TYPE=postgres -e DB_HOST=db -e DB_PORT=5432 -e DB_PASS_FILE=/etc/wiki/.db-secret -v /etc/wiki:/etc/wiki:ro -e DB_USER=wiki -e DB_NAME=wiki -e UPGRADE_COMPANION=1 --restart=unless-stopped -h wiki --network=wikinet -p 80:3000 -p 443:3443 ghcr.io/requarks/wiki:2 docker create --name=wiki-update-companion -v /var/run/docker.sock:/var/run/docker.sock:ro --restart=unless-stopped -h wiki-update-companion --network=wikinet ghcr.io/requarks/wiki-update-companion:latest ```