|
|
il y a 1 an | |
|---|---|---|
| docs | il y a 1 an | |
| src | il y a 1 an | |
| .gitignore | il y a 1 an | |
| README.md | il y a 1 an | |
| TODO.md | il y a 1 an |
AutoMate is a one-person IT automation project designed to streamline and automate administrative tasks. This project aims to minimize manual work for tasks such as document processing, task management, billing, and reporting through open-source, on-premise tools.
Create a .env file in the project root with the following placeholders (to be replaced with actual values):
# Paperless-ngx Configuration
PAPERLESS_DB_USER=myuser
PAPERLESS_DB_PASSWORD=randomGeneratedPassword
PAPERLESS_SECRET_KEY=randomGeneratedSecret
# Nextcloud Configuration
NEXTCLOUD_ADMIN_USER=admin
NEXTCLOUD_ADMIN_PASSWORD=randomGeneratedPassword
# Database Configuration for Nextcloud
MYSQL_ROOT_PASSWORD=randomGeneratedPassword
MYSQL_DATABASE=nextcloud
MYSQL_USER=nextcloud
MYSQL_PASSWORD=randomGeneratedPassword
# Kimai Database Configuration
KIMAI_DB_DATABASE=kimai
KIMAI_DB_USER=kimai_user
KIMAI_DB_PASSWORD=randomGeneratedPassword
KIMAI_DB_ROOT_PASSWORD=randomGeneratedPassword
# Kimai Admin User Configuration
KIMAI_ADMIN_USER=kiami_admin_user
KIMAI_ADMIN_PASSWORD=randomGeneratedPassword
KIMAI_ADMIN_EMAIL=kiami@admin.email
# Keycloak Configuration
KEYCLOAK_ADMIN_USER=admin
KEYCLOAK_ADMIN_PASSWORD=randomGeneratedPassword
KEYCLOAK_DB=keycloak
KEYCLOAK_DB_USERNAME=keycloak_user
KEYCLOAK_DB_PASSWORD=randomGeneratedPassword
# N8N Configuration
N8N_USER=n8n_user
N8N_PASSWORD=randomGeneratedPassword
To install Docker on a new system, you can use the provided installation script. Run the following commands in the src/scripts directory:
cd ~/AutoMate/src/scripts
./install_docker.sh
This script will install Docker and add the current user to the Docker group. Note: You will need to log out and log back in for the group permissions to take effect.
Navigate to the Docker Config Directory:
cd ~/AutoMate/src/docker
Start Docker Compose:
Use Docker Compose to start all configured services.
docker-compose up -d
To confirm that all services are running, use:
docker-compose ps
The project includes a script to generate self-signed SSL certificates for local development.
Run the SSL Generation Script:
cd ~/AutoMate/src/scripts
./generate_ssl_certificate.sh -d "mrx8086.com" -o "../configs/certs" -t 365 -p "yourPfxPassword"
Generated Files:
.crt and .key files for NGINX in configs/certs..pfx file for importing into Windows to prevent SSL errors.NGINX is used as a reverse proxy to route traffic to different services via subdomains (e.g., auth.mrx8086.com for Keycloak).
The NGINX configuration is stored in src/configs/nginx/nginx.conf. It is set up to handle:
auth.mrx8086.comcloud.mrx8086.comdocs.mrx8086.comtime.mrx8086.comautomate.mrx8086.comMake sure to add these subdomains to your hosts file for local testing.
After starting the Paperless-ngx service for the first time, you need to create a superuser (admin) account to access the interface. Follow these steps:
Run the following command in your project directory to enter the Paperless-ngx container:
docker-compose exec paperless python3 manage.py createsuperuser
Provide the Required Information:
Log In to Paperless-ngx:
http://docs.mrx8086.com.http://time.mrx8086.com.KIMAI_ADMIN_USER and KIMAI_ADMIN_PASSWORD values you set in .env.Run Keycloak:
docker-compose up -d keycloak..env.Create a Realm and Clients:
Connecting Applications:
Each service can be accessed using the following URLs:
Please ensure any modifications are tested locally before pushing changes to the repository.
All environment variables should be stored in .env and sensitive information should not be committed to the repository.
```