Sem descrição

mathias.riechsteiner cd2c5c1b8b Initial setup of AutoMate project with Paperless-ngx, Docker Compose, and project documentation há 1 ano atrás
docs cd2c5c1b8b Initial setup of AutoMate project with Paperless-ngx, Docker Compose, and project documentation há 1 ano atrás
src cd2c5c1b8b Initial setup of AutoMate project with Paperless-ngx, Docker Compose, and project documentation há 1 ano atrás
.gitignore cd2c5c1b8b Initial setup of AutoMate project with Paperless-ngx, Docker Compose, and project documentation há 1 ano atrás
README.md cd2c5c1b8b Initial setup of AutoMate project with Paperless-ngx, Docker Compose, and project documentation há 1 ano atrás
TODO.md cd2c5c1b8b Initial setup of AutoMate project with Paperless-ngx, Docker Compose, and project documentation há 1 ano atrás

README.md

AutoMate Project

Overview

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.

Project Structure

  • docs/: Documentation for setup, usage, and maintenance.
  • src/: Main codebase, including Docker configuration and automation scripts.
    • src/docker/: Docker Compose configuration files and individual Dockerfile(s).
    • src/scripts/: Custom scripts (e.g., for installation or automation).
    • src/configs/: Configuration files for different services.
  • data/: Persistent data storage (e.g., databases).
  • logs/: Application logs.

Environment Variables

Create a .env file in the project root with the following placeholders (to be replaced with actual values):

'''bash DB_USER=myuser DB_PASSWORD=randomGeneratedPassword NEXTCLOUD_ADMIN_USER=admin NEXTCLOUD_ADMIN_PASSWORD=randomAdminPassword '''

Installation

Step 1: Install Docker

To install Docker on a new system, you can use the provided installation script. Run the following commands in the src/scripts directory:

'''bash 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.

Step 2: Docker Compose Setup

  1. Navigate to the Docker Config Directory:

'''bash cd ~/AutoMate/src/docker '''

  1. Start Docker Compose:

Use Docker Compose to start all configured services.

'''bash docker-compose up -d '''

  1. Check Status:

To confirm that all services are running, use:

'''bash docker-compose ps '''

Creating an Admin User for Paperless-ngx

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:

  1. Run the following command in your project directory to enter the Paperless-ngx container:

$$$ docker-compose exec paperless python3 manage.py createsuperuser $$$

  1. Provide the Required Information:

    • Enter a username for the admin account.
    • Provide an email address.
    • Set a password.
  2. Log In to Paperless-ngx:

    • Open your web browser and go to http://localhost:8000.
    • Use the username and password you just created to log in as the admin.

This setup step is necessary only for the first-time setup or if you need to create additional admin users.