Getting the server up
Closed this issue · 2 comments
RodrigoCMoraes commented
Hi o/
I was unable to get the server up by just running docker-compose up
and execute the proper commands explained in README.md.
But after while and a little of web documentation and search I was able to get it up with the configuration below:
POSTGRES_USER=admin
POSTGRES_PASSWORD=admin
POSTGRES_DB=dev
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=admin
JWT_EXPIRATION_TIME=31536000
JWT_SECRET=foobar
POSTGRES_HOST=0.0.0.0
POSTGRES_PORT=5432
QUEUE_HOST=localhost
QUEUE_PORT=8001
CODEFORCES_CLIENT_USERNAME=my_username
CODEFORCES_CLIENT_PASSWORD=my_password
URI_BOT_EMAIL=my_username
URI_BOT_PASSWORD=my_password
basically this code was inside a file in root of server named as dev.env
than I executed the following command:
export $(cat .env) && yarn start:dev
the usernames and passwords here are fake
RodrigoCMoraes commented
Please document this step :)