diff --git a/README.md b/README.md index d32b095..abf34bc 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ 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 `unless-stopped` 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, then run `docker-compose up -d`. The default restart policy is `always` so your website will start back up after a reboot. When the containers are up, visit the website in a browser to start the installer. By default it listens on any interface, port 80. @@ -25,4 +25,4 @@ When the database configuration page shows up, fill in `db` for *database addres ## 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). \ No newline at end of file +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). diff --git a/docker-compose.yml b/docker-compose.yml index e3eb4b2..6d84397 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,12 +9,12 @@ services: # environment: # PHP_FPM: php:9000 depends_on: [php] - restart: unless-stopped + restart: always php: image: namelessmc/php volumes: ['/srv/namelessmc/web:/data'] # same as web container - restart: unless-stopped + restart: always db: image: mariadb @@ -24,4 +24,4 @@ services: MYSQL_USER: nameless MYSQL_PASSWORD: nameless MYSQL_DATABASE: nameless - restart: unless-stopped + restart: always