Compare commits
6 Commits
3ed5acf75e
...
1.2.2
Author | SHA1 | Date | |
---|---|---|---|
5f0679221e | |||
375b922537 | |||
c400020425 | |||
a76ab77757 | |||
db95b12985 | |||
8648f5a62e |
49
README.md
49
README.md
@ -6,52 +6,3 @@ Grab attachments from emails by inbox.
|
|||||||
* Choose what mailboxes to watch.
|
* Choose what mailboxes to watch.
|
||||||
* Select messages that you want to grab attachments from.
|
* Select messages that you want to grab attachments from.
|
||||||
* Download (or view in browser) (decrypted) attachments from messages.
|
* Download (or view in browser) (decrypted) attachments from messages.
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
* Docker with Docker Compose [https://www.docker.com/](https://www.docker.com/)
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
1. Pull from repository
|
|
||||||
```
|
|
||||||
git pull git@git.provm.cl:Incoviba/emails.git
|
|
||||||
```
|
|
||||||
Change to latest release
|
|
||||||
```
|
|
||||||
git checkout release
|
|
||||||
```
|
|
||||||
2. Check the docker-compose.yml files
|
|
||||||
1. docker-compose.yml - central proxy container
|
|
||||||
2. api/docker-compose.yml - API container and database
|
|
||||||
3. cli/docker-compose.yml - CLI container that runs cron jobs
|
|
||||||
4. ui/docker-compose.yml - UI container
|
|
||||||
3. Generate the API Key
|
|
||||||
If you have openssl (comes with most linux distros) you can run this in terminal
|
|
||||||
```
|
|
||||||
echo API_KEY=`(openssl rand -hex 128)` >> .key.env
|
|
||||||
```
|
|
||||||
4. Check Environment files
|
|
||||||
1. .env - Docker Compose and Environment settings. Check volumes and ports.
|
|
||||||
2. .key.env - API_KEY, generated before.
|
|
||||||
3. .mail.env - Email Identification.
|
|
||||||
4. api/.env - Encrypted PDF files passwords.
|
|
||||||
5. api/.db.env - Database configuration.
|
|
||||||
6. cli/.env - API_URI, for connecting to the api container from the cli container. Change it if the api is someplace else.
|
|
||||||
7. ui/.env - API_URI, same as from the cli.
|
|
||||||
5. Check if every configuration is correct before starting the application
|
|
||||||
```
|
|
||||||
docker compose config
|
|
||||||
```
|
|
||||||
If everything is fine
|
|
||||||
```
|
|
||||||
docker compose up -d
|
|
||||||
```
|
|
||||||
6. Connect to the UI
|
|
||||||
Default [http://localhost:8000](http://localhost:8000)
|
|
||||||
|
|
||||||
## Development
|
|
||||||
When development there is a container for adminer, to use it you can add it into `COMPOSE_PROFILES` or run
|
|
||||||
```
|
|
||||||
docker compose up -d adminer
|
|
||||||
```
|
|
||||||
|
@ -18,7 +18,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ${API_PATH:-.}/.env
|
- ${API_PATH:-.}/.env
|
||||||
- ${API_PATH:-.}/.db.env
|
- ${API_PATH:-.}/.db.env
|
||||||
- ${API_PATH:-.}/.mail.env
|
- .mail.env
|
||||||
- .key.env
|
- .key.env
|
||||||
volumes:
|
volumes:
|
||||||
- ${API_PATH:-.}/:/app/api
|
- ${API_PATH:-.}/:/app/api
|
||||||
|
Reference in New Issue
Block a user