Use restart policy always
This commit is contained in:
parent
0d5f45988b
commit
c3699bde12
@ -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).
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user