From fc1846d2f4d623ad18840604abcc7b24454c5957 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 5 Apr 2022 19:16:06 +0200 Subject: [PATCH] Docker compose v2 --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 669df9a..ee3cb13 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,11 @@ You have to manually install Docker first if you don't have it installed on your ### Automated Deployment -You will need to install [Docker Compose](https://docs.docker.com/compose/) for automated deploying. +You will need to install [Docker Compose](https://docs.docker.com/compose/) for automated deployment. +For Debian/Ubuntu: ```bash -sudo apt install docker-compose +sudo apt install docker-compose-plugin ``` Download the [latest docker-compose.yml](https://github.com/NamelessMC/Nameless-Docker/blob/v2-pr7-to-pr12/docker-compose.yml) or [experimental development docker-compose.yml](https://github.com/NamelessMC/Nameless-Docker/blob/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. @@ -24,12 +25,15 @@ mkdir web chown 33:33 web ``` -Then run `docker-compose up -d`. +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. +## Troubleshooting +Check container logs using `docker compose logs`. + ## 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).