SimpleAccounts
Ask or search…
K

Mac 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:
Here are detailed instructions to install Docker and Docker Compose on Mac OS:

Git Installation


Installing Git on macOS is a straightforward process
  1. 1.
    Using Homebrew (Recommended): Homebrew is a popular package manager for macOS that makes it easy to install and manage various software, including Git.
  • Open the Terminal. You can find it in the Applications folder under Utilities, or you can use Spotlight (Cmd + Space) and search for "Terminal."
  • If you don't have Homebrew installed, you can install it by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Once Homebrew is installed, you can install Git by running:
brew install git
  1. 2.
    Xcode Command Line Tools: Git is also available through the Xcode Command Line Tools, which can be installed as follows:
  • Open Terminal.
  • Run the following command:
xcode-select --install
  • A dialog will appear asking if you want to install the tools. Click "Install."
  1. 3.
    Verify Installation:
  • After installation, you can verify Git is correctly installed by opening a terminal and running:
git --version

Installing Docker on macOS


  1. 1.
    Visit the Docker website: https://www.docker.com/get-started
  2. 2.
    Click on the "Get Docker" button.
  3. 3.
    On the next page, select "Docker Desktop for Mac" to download the installer.
  4. 4.
    Once the download is complete, open the installer package (.dmg file).
  5. 5.
    Drag and drop the Docker.app icon into the Applications folder to install Docker.
  6. 6.
    Launch Docker by clicking on the Docker icon in the Applications folder.
  7. 7.
    Docker may prompt you for system-level permissions. Enter your macOS user password to authorize Docker.
  8. 8.
    Docker Desktop will start up, and you'll see the Docker icon appear in the macOS menu bar.
  9. 9.
    Docker may take a few minutes to initialize. Once it's ready, you'll see the Docker status as "Docker is running" in the menu bar.
  10. 10.
    Click on the Docker icon in the menu bar and select "Preferences" to access Docker settings. From there, you can customize various configurations such as resources, network, and more. You can review and adjust these settings according to your needs.
  11. 11.
    Docker is now installed on your macOS machine. You can open a terminal window and run docker --version to verify the installation. It should display the Docker version number.

Installing Docker Compose on Mac OS


  1. 1.
    Open a terminal window.
  2. 2.
    Run the following command to download the Docker Compose binary:
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
This command retrieves the latest release of Docker Compose and saves it to the /usr/local/bin/docker-compose location.
  1. 3.
    After the download completes, run the following command to make the docker-compose binary executable:
chmod +x /usr/local/bin/docker-compose
  1. 4.
    Verify the installation by running docker-compose --version in the terminal. It should display the Docker Compose version number.
Docker and Docker Compose are now successfully installed on your macOS machine. You can proceed with using them as described in your project's README.md file or other relevant documentation.
Note: Make sure to restart your computer after installing Docker and Docker Compose to ensure that all changes take effect properly.
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. 1.
    Clone the SimpleAccounts-UAE repository:
git clone https://github.com/SimpleAccounts/SimpleAccounts-UAE.git
cd SimpleAccounts-UAE
  1. 2.
    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. 3.
    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 modified 6mo ago