Use restart policy always

This commit is contained in:
Derkades 2020-10-17 22:34:58 +02:00
parent 0d5f45988b
commit c3699bde12
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ You will need to install [Docker Compose](https://docs.docker.com/compose/) for
sudo apt install docker-compose 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. 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 ## 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). 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).

View File

@ -9,12 +9,12 @@ services:
# environment: # environment:
# PHP_FPM: php:9000 # PHP_FPM: php:9000
depends_on: [php] depends_on: [php]
restart: unless-stopped restart: always
php: php:
image: namelessmc/php image: namelessmc/php
volumes: ['/srv/namelessmc/web:/data'] # same as web container volumes: ['/srv/namelessmc/web:/data'] # same as web container
restart: unless-stopped restart: always
db: db:
image: mariadb image: mariadb
@ -24,4 +24,4 @@ services:
MYSQL_USER: nameless MYSQL_USER: nameless
MYSQL_PASSWORD: nameless MYSQL_PASSWORD: nameless
MYSQL_DATABASE: nameless MYSQL_DATABASE: nameless
restart: unless-stopped restart: always