From ba1bf7d26360024dec5ae8ee64ff867c24aafc35 Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Wed, 17 Feb 2021 22:32:06 +0200 Subject: [PATCH] Feat doc docker (#57) * updated Readme, unset variabla * unset variabla * documentation --- README.md | 14 +++++++++++--- cms/settings.py | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ed67083..0de49f8 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cms/settings.py b/cms/settings.py index 2c6c115..82fd4f4 100644 --- a/cms/settings.py +++ b/cms/settings.py @@ -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