Docker configuration for Debugging WordPress together with Mobilizon
Go to file
2023-12-15 15:05:37 +01:00
mobilizon change cert mounting points 2023-12-15 15:05:37 +01:00
nginx wip 2023-12-10 13:19:03 +01:00
wordpress initial commit 2023-12-09 12:54:38 +01:00
.gitignore initial commit 2023-12-09 12:54:38 +01:00
docker-compose.yml change cert mounting points 2023-12-15 15:05:37 +01:00
LICENSE initial commit 2023-12-09 12:54:38 +01:00
Makefile wip 2023-12-10 13:19:03 +01:00
README.md change cert mounting points 2023-12-15 15:05:37 +01:00

  1. Requirements
  • make
  • docker and docker-compose
  • mkcert to handle locally trusted SSL certificates.
  1. Clone Mobilizon source
cd mobilizon && git clone https://framagit.org/framasoft/mobilizon.git
  1. Generate a local 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
  1. 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
  1. Build Mobilizon via running make setup

  2. Start the docker containers via make start

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

  4. Create an administrator user for Mobilizon

docker-compose exec mobilizon mix mobilizon.users.new "your@email.com" --admin --password "mypassword"
  1. Get the logs via docker-compose logs -f <container_name> or make logs.