2023-12-05 17:49:25 +01:00
|
|
|
|
2023-12-05 17:53:38 +01:00
|
|
|
1. Requirements
|
|
|
|
- docker
|
|
|
|
- `mkcert` to handle locally trusted SSL certificates.
|
2023-12-05 17:49:25 +01:00
|
|
|
|
2023-12-06 19:45:57 +01:00
|
|
|
2. Clone mobilizon source
|
|
|
|
```bash
|
|
|
|
git clone https://framagit.org/framasoft/mobilizon.git
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Generate a local certificate which is used for both WordPress and Mobilizon.
|
2023-12-05 17:49:25 +01:00
|
|
|
```bash
|
|
|
|
mkcert -install -cert-file certs/lan.pem -key-file certs/lan-key.pem wp.lan mz.lan
|
|
|
|
```
|
2023-12-05 17:53:38 +01:00
|
|
|
|
2023-12-06 19:45:57 +01:00
|
|
|
4. Add the two dummy domains to the /etc/hosts file on your machine:
|
2023-12-05 17:49:25 +01:00
|
|
|
```
|
|
|
|
127.0.0.1 wp.lan
|
|
|
|
127.0.0.1 mz.lan
|
2023-12-05 17:51:51 +01:00
|
|
|
```
|
2023-12-05 17:58:08 +01:00
|
|
|
|
2023-12-06 19:46:11 +01:00
|
|
|
5. Build Mobilizon via running `make setup``
|
2023-12-06 19:45:57 +01:00
|
|
|
|
|
|
|
5. Start the docker containers via `docker-compose up -d`
|
|
|
|
|
|
|
|
6. Go to https://wp.lan and setup WordPress
|
2023-12-05 17:58:08 +01:00
|
|
|
|
2023-12-06 19:45:57 +01:00
|
|
|
7. Create an administrator user for Mobilizon
|
2023-12-05 17:58:08 +01:00
|
|
|
```
|
2023-12-06 19:45:57 +01:00
|
|
|
docker-compose exec mobilizon mobilizon_ctl users.new "your@email.com" --admin --password "abc"
|
2023-12-05 17:58:08 +01:00
|
|
|
```
|