docker/README.md

36 lines
891 B
Markdown
Raw Normal View History

2023-12-09 12:54:38 +01:00
1. Requirements
2023-12-15 14:45:15 +01:00
- `make`
- `docker` and `docker-compose`
2023-12-09 12:54:38 +01:00
- `mkcert` to handle locally trusted SSL certificates.
2023-12-15 14:45:15 +01:00
2. Clone Mobilizon source
2023-12-09 12:54:38 +01:00
```bash
2023-12-15 14:45:15 +01:00
cd mobilizon && git clone https://framagit.org/framasoft/mobilizon.git
2023-12-09 12:54:38 +01:00
```
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
```
2023-12-15 14:45:15 +01:00
5. Build Mobilizon via running `make setup`
2023-12-09 12:54:38 +01:00
2023-12-15 14:45:15 +01:00
5. Start the docker containers via `make start`
2023-12-09 12:54:38 +01:00
6. Go to http://wp.lan and setup WordPress
2023-12-09 12:54:38 +01:00
7. Create an administrator user for Mobilizon
```
docker-compose exec mobilizon mix mobilizon.users.new "your@email.com" --admin --password "mypassword"
```
2023-12-15 14:50:36 +01:00
8. Get the logs via `docker-compose logs -f <container_name>` or `make logs`.
2023-12-15 15:05:37 +01:00