Feat doc docker (#57)

* updated Readme, unset variabla

* unset variabla

* documentation
pull/58/head
Markos Gogoulos 2021-02-17 22:32:06 +02:00 zatwierdzone przez GitHub
rodzic 41c66469e2
commit ba1bf7d263
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 12 dodań i 4 usunięć

Wyświetl plik

@ -82,19 +82,27 @@ In terms of disk space, think of what the needs will be. A general rule is to mu
## Installation
MediaCMS can be installed through an automated script that installs and configures all needed services on a single server, and through Docker Compose.
There are two ways to run MediaCMS, through Docker Compose and through installing it on a server via an automation script that installs and configures all needed services.
### Docker Compose installation
With a recent version of Docker Compose installed, run as root
Install a recent version of [Docker](https://docs.docker.com/get-docker/), and [Docker Compose](https://docs.docker.com/compose/install/).
Run as root
```bash
git clone https://github.com/mediacms-io/mediacms
cd mediacms
```
The default option to serve MediaCMS is on http://localhost. If you want to set a url and have it served there, set the `FRONTEND_HOST` variable on file `deploy/docker/local_settings.py`.
Now run
```bash
docker-compose build && docker-compose up
```
This will build an image, download and setup necessary images and start all containers. Once it finishes, MediaCMS will be installed on http://localhost
This will build an image, download and setup necessary Docker images and start all containers. Once it finishes, MediaCMS will be installed and available on http://localhost (or the url you've set as `FRONTEND_HOST` on file `deploy/docker/local_settings.py`)
For more instructions, checkout the docs on the [Docker deployment](docs/Docker_deployment.md) page. Docker Compose support has been contributed by @swiftugandan.

Wyświetl plik

@ -23,7 +23,7 @@ DEFAULT_THEME = "black" # this is not taken under consideration currently
# if set to False will not fetch external content
# this is only for the static files, as fonts/css/js files loaded from CDNs
# not for user uploaded media!
LOAD_FROM_CDN = True
LOAD_FROM_CDN = False
LOGIN_ALLOWED = True # whether the login button appears
REGISTER_ALLOWED = True # whether the register button appears
UPLOAD_MEDIA_ALLOWED = True # whether the upload media button appears