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: Install Git
Docker: Install Docker
Docker Compose: Install Docker Compose
Git Installation
Installing Git on macOS is a straightforward process
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:
Once Homebrew is installed, you can install Git by running:
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:
A dialog will appear asking if you want to install the tools. Click "Install."
Verify Installation:
After installation, you can verify Git is correctly installed by opening a terminal and running:
Installing Docker on macOS
Visit the Docker website: https://www.docker.com/get-started
Click on the "Get Docker" button.
On the next page, select "Docker Desktop for Mac" to download the installer.
Once the download is complete, open the installer package (
.dmg
file).Drag and drop the Docker.app icon into the Applications folder to install Docker.
Launch Docker by clicking on the Docker icon in the Applications folder.
Docker may prompt you for system-level permissions. Enter your macOS user password to authorize Docker.
Docker Desktop will start up, and you'll see the Docker icon appear in the macOS menu bar.
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.
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.
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
Open a terminal window.
Run the following command to download the Docker Compose binary:
This command retrieves the latest release of Docker Compose and saves it to the /usr/local/bin/docker-compose
location.
After the download completes, run the following command to 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.
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:
Make sure you see the version numbers for both commands.
Installation
Clone the SimpleAccounts-UAE repository:
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.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