Docker

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:

Installing Git


Setting up Git on Windows is a straightforward process. Follow these steps to get started:

  1. Download Git:

    • Visit the official Git website: https://git-scm.com/

    • Click on the "Download for Windows" button.

    • The download will start automatically. Once it's complete, run the installer.

  2. Install Git:

    • Run the downloaded Git installer.

    • You'll see a series of setup options:

      • Select the language you prefer for the installation process.

      • Click "Next" to proceed.

      • Read the license agreement and accept it.

      • Select "OpenSSL" option for HTTPS transport backend.

      • Click "Next" to proceed.

  3. Complete the Installation:

    • Choose your preferred terminal emulator for using Git commands (e.g., Git Bash, Command Prompt, PowerShell). Git Bash is highly recommended.

    • Click "Next" to begin the installation process.

    • When the installation is complete, click "Finish."

  4. Verify the Installation:

    • Open the terminal emulator you chose during installation (e.g., Git Bash).

    • To verify Git installation use below command. You should see the installed Git version in the terminal.

git --version

Docker Install Verification

To verify if Docker and Docker Compose are installed correctly, run the following commands:

docker --version
docker-compose --version

Make sure you see the version numbers for both commands.

Installation


  1. Clone the SimpleAccounts-UAE repository:

git clone https://github.com/SimpleAccounts/SimpleAccounts-UAE.git
cd SimpleAccounts-UAE
  1. 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.

  2. Start the application using Docker Compose:

    docker-compose up -d

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