FoolFuuka/Install/Docker: Difference between revisions

From Bibliotheca Anonoma
No edit summary
m (Unless you want to expose your database to the internet, map the port to local address.)
 
(2 intermediate revisions by one other user not shown)
Line 15: Line 15:
=== Full Stack Compose ===
=== Full Stack Compose ===


This deploys the entire FoolFuuka stack with the FoolFuuka PHP Frontend, Percona MySQL InnoDB, a scraper engine of your choice, and Sphinxsearch. Just use the configuration described in the wiki.
This deploys the entire FoolFuuka stack with the FoolFuuka PHP Frontend, Percona MySQL InnoDB, a scraper engine of your choice, and Sphinxsearch. Just use the configuration described in the readme, define a different root password in production.


https://github.com/Suika/foolstack-docker
https://github.com/Suika/foolstack-docker
Line 22: Line 22:


For testing purposes, if the scraper will run outside the container, and no search is necessary, expose the MySQL port and the Nginx webserver port is already exposed at port 8080.
For testing purposes, if the scraper will run outside the container, and no search is necessary, expose the MySQL port and the Nginx webserver port is already exposed at port 8080.
Based on the configuration defined in the README above, define a different root password in production, remove the ''foolstack-search'', disable the ''foolstack-scraper'', and remove the 'ff-sphinx-*' volumes.
Lastly, under the section ''foolstack-db'', place the port forward:
{{bc|
    # explicit port forward as scraper is run outside docker network
    ports:
      - 127.0.0.1:3306:3306
}}

Latest revision as of 02:12, 11 April 2020

Suika has developed a FoolFuuka/Asagi orchestrator. It has been tested on Debian 9 with Docker compose, but should work fine on any docker setup. Kubernetes and Openshift possibly will be tested later on.

https://github.com/Suika/foolstack-docker

Installing Docker Compose[edit]

Ubuntu 18.04 LTS[edit]

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04

Deployment Methods[edit]

Full Stack Compose[edit]

This deploys the entire FoolFuuka stack with the FoolFuuka PHP Frontend, Percona MySQL InnoDB, a scraper engine of your choice, and Sphinxsearch. Just use the configuration described in the readme, define a different root password in production.

https://github.com/Suika/foolstack-docker

Scraperless Compose[edit]

For testing purposes, if the scraper will run outside the container, and no search is necessary, expose the MySQL port and the Nginx webserver port is already exposed at port 8080.

Based on the configuration defined in the README above, define a different root password in production, remove the foolstack-search, disable the foolstack-scraper, and remove the 'ff-sphinx-*' volumes.

Lastly, under the section foolstack-db, place the port forward:

    # explicit port forward as scraper is run outside docker network
    ports:
      - 127.0.0.1:3306:3306