diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 00000000..92b811ec --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,22 @@ +# Installation using Docker + +This project includes a Docker configuration for local development. + +## Prerequisites + +- [Docker](https://docs.docker.com/get-docker/) +- [Docker Compose](https://docs.docker.com/compose/) + +## Setup + +1. Copy `+passwords.ini.sample` to `+passwords.ini` and adjust the values if necessary. +2. Build and start the containers: + + ```bash + docker-compose up --build + ``` + +3. (Optional) Import the SQL dump located at `database/virtualpol.sql` into the running MySQL container. +4. Once the services are running, open `http://localhost` in your browser. + +To stop the containers, run `docker-compose down`. diff --git a/README.txt b/README.txt index 3032a92f..e867dd0a 100755 --- a/README.txt +++ b/README.txt @@ -13,8 +13,11 @@ no hacer falta un administrador para esa taréa. Los principios de POL son: democracia, igualdad, transparencia, soberanía, flexibilidad y software libre. + La web principal está funcionando actualmente en https://pol.virtualpol.com +Para iniciar un entorno local con Docker consulta `INSTALL.md`. + ################ ### HISTORIA ### diff --git a/README_v1.4.md b/README_v1.4.md index 109a6bfb..1d9af1ba 100755 --- a/README_v1.4.md +++ b/README_v1.4.md @@ -20,4 +20,6 @@ VirtualPol es la primera comunidad de Internet sin administrador. Un paso firme Entrar a VirtualPol: **http://www.virtualpol.com** -Todo sobre el desarrollo: http://www.virtualpol.com/desarrollo \ No newline at end of file +Todo sobre el desarrollo: http://www.virtualpol.com/desarrollo + +Para desplegarlo localmente con Docker consulta `INSTALL.md`.