- Docker
Create a .env file at the root of the project (Where the README is located) in which you will copy/paste the content of the .env.sample file then fill.
Warning
If you have randomly generated password that contains symbols, set them between quotes in the .env file to avoid any error
Build the project in detached mode and start the container.
docker compose up --build -d
Start with the following command:
docker compose -f docker-compose.prod.yaml up setup -d
The setup service will create all required users needed for ELK authentications to work.
Important
Wait few minutes until the setup finishes to set up users necessary for ELK
authentication to work
Once the setup ended paste the following command:
docker compose -f docker-compose.prod.yaml up --build -d
Using docker to execute the command that allows to connect to the database in your terminal
docker exec -it postgres psql -U <username> -d <database>
The production environment has the ELK
containers which allow
to listen to exceptions and logs returned by the app and the containers
Once the production environment started, reach for the following url: localhost:5601
Note
This url will redirect you to the Kibana dashboard where you could find the logs and exceptions.
But before that it will prompt you to log in.
Note
Depending on the launched environment, be sure to call one of the following routes:
dev environment | prod environment |
---|---|
locahost:8000 |
locahost:80 |