Never again open websites just to find if there are things you desire.
You can build and run development machines using following commands:
docker-compose build && docker-compose up
After this, run following script in a separate terminal emulator:
./first_run.sh
If you want to run Keyword Finder again, you can just type:
docker-compose up
If you want to run this server in production environment, while running the web container, you need to:
-
comment out line: "DEBUG = True" in file keyword_finder/keyword_finder/settings.py,
-
adjust "ALLOWED_HOSTS" in file keyword_finder/keyword_finder/settings.py,
-
change "SECRET_KEY" in file keyword_finder/keyword_finder/settings.py,
-
adjust domain in nginx.conf,
-
change line in Dockerfile from "8000:8000" to "80:80",
-
change passwords in Dockerfile and keyword_finder/keyword_finder/settings.py,
-
issue following commands:
mv run_production.sh run_web.sh docker exec -i -t keywordfinder_web_1 /bin/bash pip install gunicorn apt-get update && apt-get install -y nginx cp nginx.conf /etc/nginx/sites-enabled/
Run your production server with:
docker-compose up --abort-on-container-exit --no-recreate