Repo to host the docker setup for the PIA tool.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vincent 05b08a2cff Revert "Auth HTTP in Apache" 1 year ago
pia-back Use the production RAILS environment 1 year ago
pia-front Revert "Auth HTTP in Apache" 1 year ago
templates Don't use the FSFE RP after all 1 year ago
.gitignore Typo 1 year ago
LICENCE Initial commit 1 year ago
README.md Simplify the pia(back build process for postgres password 1 year ago
ansible.cfg Ansible support 1 year ago
deploy_watchtower.sh Watchtower deployement 1 year ago
docker-compose.yml Revert "Auth HTTP in Apache" 1 year ago
hosts Ansible support 1 year ago
pia.deploy.yml Revert "Auth HTTP in Apache" 1 year ago
requirements.txt Ansible support 1 year ago

README.md

Docker PIA

Docker files to build the PIA tool from CNIL.

Installation

docker installation

Follow this procedure to install docker.

Docker compose installation

Follow this procedure to install docker compose.

Deployment

To install the PIA tool, run the following commands:

git clone git@git.fsfe.org:vincent/pia-docker.git
cd pia-docker/

Important: Choose a directory for the posgreSQL data and put it in the docker compose file instead of pg_data.

Docker compose

Important: Pick a password for the postgreSQL database and put it here.

Then start the application:

docker-compose up

Ansible

Important: Pick a password for the postgreSQL database and put it here.

Then start the application:

ansible-playbook pia.deploy.yml

Configuration

The application will be exposed on the port 80 to the containers host.

Configure the IP address of the PIA backend on the web application. Tutorial here. We need to enter the IP address of the pia-backend container. To find the IP address, the docker inspect command may be used.

How it works?

The PIA tool is split into 3 containers:

  • One container contains the PostgreSQL database.
  • One container contains the backend of the PIA tool. The backend uses the database.
  • On container contains the web application (frontend). The front end uses the backend.

To build the containers for the backend and the frontend, we use dockerfiles in the pia-backend and pia-front directories, respectively.

The docker-compose tool creates a dedicated docker network for the PIA application. Each container is reachable by the other containers in the network, and the hostname of each container is the container name. So inside the network, pia-back will always map to the bridged interface of the pia-back container.

Licence

This software is copyright 2018 by the Free Software Foundation Europe e.V. and licensed under the GPLv3 license. For details see the “LICENSE” file in the top level directory of https://git.fsfe.org/vincent/pia-docker.