doc/install: update install instructions to remove build step
This commit is contained in:
parent
eb49aea683
commit
80da6467f6
1 changed files with 22 additions and 11 deletions
|
@ -3,7 +3,7 @@ and Docker Compose (version 1.6.0 or greater) already installed.
|
||||||
|
|
||||||
### Prepare things
|
### Prepare things
|
||||||
|
|
||||||
1. Getting `szurubooru`:
|
1. Download the `szurubooru` source:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
user@host:~$ git clone https://github.com/rr-/szurubooru.git szuru
|
user@host:~$ git clone https://github.com/rr-/szurubooru.git szuru
|
||||||
|
@ -44,24 +44,35 @@ and Docker Compose (version 1.6.0 or greater) already installed.
|
||||||
on how to do so are provided
|
on how to do so are provided
|
||||||
[here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode).
|
[here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode).
|
||||||
|
|
||||||
2. Build or update the containers:
|
2. Running the application
|
||||||
|
|
||||||
|
Download containers:
|
||||||
```console
|
```console
|
||||||
user@host:szuru$ docker-compose pull
|
user@host:szuru$ docker-compose pull
|
||||||
user@host:szuru$ docker-compose build --pull
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This will build both the frontend and backend containers, and may take
|
For first run, it is reccomended to start the databases seperately:
|
||||||
some time.
|
```console
|
||||||
|
user@host:szuru$ docker-compose up -d elasticsearch
|
||||||
3. Start and stop the the application
|
user@host:szuru$ docker-compose up -d sql
|
||||||
|
```
|
||||||
|
Then wait approx. 2 minutes before starting all containers.
|
||||||
|
This gives time for the databases to initalize their storage
|
||||||
|
structure.
|
||||||
|
|
||||||
|
To start all containers:
|
||||||
```console
|
```console
|
||||||
# To start:
|
|
||||||
user@host:szuru$ docker-compose up -d
|
user@host:szuru$ docker-compose up -d
|
||||||
# To monitor (CTRL+C to exit):
|
```
|
||||||
|
|
||||||
|
To view/monitor the application logs:
|
||||||
|
```console
|
||||||
user@host:szuru$ docker-compose logs -f
|
user@host:szuru$ docker-compose logs -f
|
||||||
# To stop
|
# (CTRL+C to exit)
|
||||||
|
```
|
||||||
|
|
||||||
|
To stop all containers:
|
||||||
|
```console
|
||||||
user@host:szuru$ docker-compose down
|
user@host:szuru$ docker-compose down
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue