Linux OS
SimpleAccounts-UAE is a web application for managing accounts. This README provides instructions for installing and running SimpleAccounts-UAE using Docker and Docker Compose.
Prerequisites
Before proceeding with the installation, please make sure you have the following prerequisites installed:
Git: Install Git
Docker: Install Docker
Docker Compose: Install Docker Compose
Git Installation
Installing Git on Linux is a very easy process and depending on the Linux distribution you are using. Here are the steps for some common Linux distributions:
Ubuntu/Debian:
Open a terminal (you can use Ctrl+Alt+T).
Update the package list:
Install Git:
Fedora:
Open a terminal.
Update the package list
Install Git:
CentOS/RHEL:
Open a terminal.
Install Git from the EPEL repository:
Other Distributions:
For other Linux distributions, you can use their respective package manager to install Git. Search for the Git package using the package manager and install it.
Verify Installation:
After installation, you can verify Git is correctly installed by opening a terminal and running:
Docker Install
Here are detailed instructions to install Docker and Docker Compose on different Linux distributions:
Ubuntu and Debian-based Systems:
Installing Docker on Ubuntu and Debian-based Systems:
Open a terminal.
Update the package index:
Install the necessary packages to allow apt to use a repository over HTTPS:
Add the official Docker GPG key:
Add the Docker repository:
For Ubuntu:
Update the package index again:
Install Docker:
Verify the installation by running
docker --version
in the terminal. It should display the Docker version number.
Installing Docker Compose on Ubuntu and Debian-based Systems:
Install Docker Compose using
curl
:
Make the
docker-compose
binary executable:
Verify the installation by running
docker-compose --version
in the terminal. It should display the Docker Compose version number.
CentOS:
Installing Docker on CentOS:
Open a terminal.
Install the required packages for Docker:
Add the Docker repository:
Install Docker:
Start Docker:
Enable Docker to start on boot:
Verify the installation by running
docker --version
in the terminal. It should display the Docker version number.
Installing Docker Compose on CentOS:
Install Docker Compose using
curl
:
Make the
docker-compose
binary executable:
Verify the installation by running `
Other Linux Distributions:
For other Linux distributions, the installation steps for Docker and Docker Compose may vary. It's recommended to refer to the official Docker documentation for instructions specific to your distribution:
Docker installation: https://docs.docker.com/engine/install/
Docker Compose installation: https://docs.docker.com/compose/install/
Make sure to follow the instructions provided for your specific Linux distribution to ensure a successful installation of Docker and Docker Compose.
To verify if Docker and Docker Compose are installed correctly, run the following commands:
Make sure you see the version numbers for both commands.
Installation:
Open the
docker/docker-compose.yml
file and review the environment variables defined under the backend service section. These variables control various aspects of the application, including SMTP configuration and database settings. It is recommended to change the default values, especially for sensitive information such as passwords.
Clone the SimpleAccounts-UAE repository:
Start the application using Docker Compose:
This command will download the required Docker images and start the containers in the background.
Access the SimpleAccounts-UAE application by opening your web browser and navigating to http://localhost:80.
Environment Variables
The following environment variables can be configured in the docker/docker-compose.yml
file under the backend service section:
SIMPLEVAT_SMTP_USER
: SMTP username for sending emails.SIMPLEVAT_SMTP_PASS
: SMTP password for authentication.SIMPLEVAT_SMTP_HOST
: SMTP server hostname.SIMPLEVAT_SMTP_PORT
: SMTP server port.SIMPLEVAT_SMTP_AUTH
: SMTP authentication method.SIMPLEVAT_SMTP_STARTTLS_ENABLE
: Enable STARTTLS for SMTP connection.SIMPLEVAT_RELEASE
: Application release version.SIMPLEVAT_HOST
: Application host URL.SIMPLEVAT_DB_HOST
: Hostname of the PostgreSQL database.SIMPLEVAT_DB
: Name of the PostgreSQL database.SIMPLEVAT_DB_USER
: PostgreSQL database username.SIMPLEVAT_DB_PASSWORD
: PostgreSQL database password.SIMPLEVAT_DB_PORT
: PostgreSQL database Port number.
It is recommended to review and update these variables according to your specific configuration.
Note: Please ensure that sensitive information, such as passwords, are stored securely and not committed to version control.
Last updated