Feat doc docker (#57)

* updated Readme, unset variabla

* unset variabla

* documentation
This commit is contained in:
Markos Gogoulos 2021-02-17 22:32:06 +02:00 committed by GitHub
parent 41c66469e2
commit ba1bf7d263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -82,19 +82,27 @@ In terms of disk space, think of what the needs will be. A general rule is to mu
## Installation ## 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 ### 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 ```bash
git clone https://github.com/mediacms-io/mediacms git clone https://github.com/mediacms-io/mediacms
cd 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 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. For more instructions, checkout the docs on the [Docker deployment](docs/Docker_deployment.md) page. Docker Compose support has been contributed by @swiftugandan.

View File

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