Docker configuration for Debugging WordPress together with Mobilizon
Go to file
2024-06-30 14:48:51 +02:00
gancio wip 2024-06-19 12:48:05 +02:00
nginx fix docker config 2024-06-30 14:48:51 +02:00
wordpress wip 2024-06-19 12:48:05 +02:00
.gitignore wip 2024-06-19 12:48:05 +02:00
docker-compose.yml fix docker config 2024-06-30 14:48:51 +02:00
LICENSE initial commit 2023-12-09 12:54:38 +01:00
Makefile new command: make admins 2023-12-20 14:23:40 +01:00
README.md enable https 2024-02-17 10:17:43 +01:00

This repository helps you to set up a local Mobilizon and a local WordPress instance for developing within minutes. It is still early alpha, if you should try it and get stuck somewhere it most likely our fault, so please reach out to us and we try to help you.

Step by Step Guide

0. Requirements

  • make
  • docker and docker-compose
  • mkcert to handle locally trusted SSL certificates.

1. Fetch the repository

git clone https://code.event-federation.eu/Event-Federation/docker.git docker && cd docker

2. Clone Mobilizon source relative to this repo

git clone https://framagit.org/framasoft/mobilizon.git mobilizon/mobilizon

3. Generate a SSL-cert

Generate a local SSL-certificate which is used for both WordPress and Mobilizon.

mkcert -install -cert-file certs/lan.pem -key-file certs/lan-key.pem wp.lan mz.lan

4. Add the two dummy domains to the /etc/hosts file on your machine:

127.0.0.1   wp.lan
127.0.0.1   mz.lan

5. Build Mobilizon

make setup

6. Start the docker containers

make start

7. Go to http://wp.lan and setup WordPress

Currently this has to be done manually:

  • Go to http://wp.lan and enter dummy credentials.
  • Install the WordPress plugins you need.

8. Create an administrator user for Mobilizon

make admins

9. Start developing and debugging

Get the logs via

  • docker-compose logs -f <container_name>
  • make logs