docker/README.md
2023-12-15 14:45:15 +01:00

32 lines
812 B
Markdown

1. Requirements
- `make`
- `docker` and `docker-compose`
- `mkcert` to handle locally trusted SSL certificates.
2. Clone Mobilizon source
```bash
cd mobilizon && git clone https://framagit.org/framasoft/mobilizon.git
```
3. Generate a local certificate which is used for both WordPress and Mobilizon.
```bash
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 via running `make setup`
5. Start the docker containers via `make start`
6. Go to https://wp.lan and setup WordPress
7. Create an administrator user for Mobilizon
```
docker-compose exec mobilizon mix mobilizon.users.new "your@email.com" --admin --password "mypassword"
```