- Docker: Ensure that Docker is installed on your system. You can download and install Docker from the official website: https://www.docker.com/get-started
Host networking is supported on Docker Desktop version 4.34 and later. To enable this feature:
- Sign in to your Docker account in Docker Desktop.
- Navigate to Settings.
- Under the Resources tab, select Network.
- Check the Enable host networking option.
- Select Apply and restart.
Ensure no other postgresql process is started, only the one in docker at port 5432 Fill up the usage plans (needed for the api key association on register) by calling
GET http://localhost:4242/usage-plansRun the frontend repo usingnpx serve@latest out
Copy the example files and fill in the values
cp .env.development.example .env.development
cp .env.example .envYou can build and run the application using Docker by executing the following commands:
# Run the application
docker-compose build --no-cache
docker-compose upThis will start both your backend, frontend and a PostgreSQL database (if defined in your docker-compose.yml). Your app will be accessible on http://localhost:4242.
To stop the running containers, simply run:
docker-compose downssh root@84.247.177.43
cd histori-backend
docker compose -f docker-compose.remote.yaml build --no-cache
# TO prune everything (containers, volumes) in case of staleness:
docker system prune -a --volumes
In production server run only the users database and the server:
docker-compose -f docker-compose.production.yml up --build -dcd terraform && terraform init