Habitat is a free and open source, self-hosted platform for communities to discover and discuss their local area.
Locals can create posts linked to a specific location on a map, making it easy for others to find and join the conversation about their local area.
Fork this repository to create your own instance of Habitat. To adhere to the AGPL license, your fork must be a public repository, so be careful not to ever commit any secrets.
The packages and setup required for hosting Habitat on a Linux server are in the Ansible playbook.
To run the ansible playbook:
- Navigate to the
Ansibledirectory - Copy
vars.yaml.templatetovars.yamland amend its contents accordingly - Run
ansible-playbook -i "domain-or-ip-address.example.com," -u example-user playbook.yaml --private-key=~/.ssh/example-key
- Navigate to the
Docker/devdirectory and copy the.env.distfile to create a new file called.env - Run
docker-compose up
Run any application, symfony and composer commands from within the habitat-apache-php container:
docker exec -it habitat-apache-php bashHabitat can be loaded in the web browser from localhost.