At the root of the project, rename the .env.example file to just .env
5. Set environment variables as needed
Attention!
For the functionalities to work correctly, it is mandatory to fill in the email configuration variables.
.env
RAILS_ENV=development
# Default Database Credentials
# We recommend changing the username and password in the database for security reasons!
MONGODB_HOST_1=host.docker.internal:30998
MONGODB_DATABASE=guia_edutec
MONGODB_USER=geos
MONGODB_PASS=<password-default>
# Email settings
MAIL_SERVER=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_DOMAIN=
MAIL_FROM=
MAIL_SENDER=
# URLs base
# Configure as needed
FRONTEND_URL=host.docker.internal:8001
BACKEND_URL=host.docker.internal:8000
# Enter a 128-character random hash containing numbers and lowercase letters
SECRET_KEY_BASE=
6. Run docker-compose command
~/geos-backend$ docker-compose up -d
Attention!
If the application is deployed on the Windows operating system, check the control characters in the entrypoint.sh file. It must be configured as LF (Line Feed).