diff --git a/README.md b/README.md index 49406e1..7c69b4e 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,20 @@ You will need to install [Docker Compose](https://docs.docker.com/compose/) for sudo apt install docker-compose ``` -Download [docker-compose.yml](https://github.com/NamelessMC/Nameless-Docker/raw/master/docker-compose.yml), optionally change some settings, then run `docker-compose up -d`. The default restart policy is `always` so your website will start back up after a reboot. +Download [docker-compose.yml](https://github.com/NamelessMC/Nameless-Docker/raw/master/docker-compose.yml), optionally change some settings like setting `user` to your user (otherwise it will run as `www-data`). Uncomment `restart: always` to have the containers start on system boot. + +Create a directory on the host with correct permissions. By default the containers use `www-data` user id 33, so: +``` +mkdir web +chown 33:33 web +``` + +Then run `docker-compose up -d`. When the containers are up, visit the website in a browser to start the installer. By default it listens on any interface, port 80. When the database configuration page shows up, fill in `db` for *database address*. For database username, password and database name, fill `nameless` for all of them, if you used default database credentials. - ## Development If you want to use Docker for developing NamelessMC, please see the [docker compose file in the main repo](https://github.com/NamelessMC/Nameless/blob/v2/docker-compose.yaml).