Py-Contributors/Cybel

DockerFile to start server.

codeperfectplus opened this issue · 7 comments

Is your feature request related to a problem? Please describe.

adding a Docker file to start the server.

For running instructions check README.md
Required:- Python3.9, requirements.txt is in the root directory

Hey man, want to contribute here. You already have a Dockerfile in your repository, what is the difference with what you are trying to achieve with this?

The current Dockerfile doesn't have an environment variable like bot toke, and DB URL(mentioned in README).

I can work on this issue.

DISCORD_TOKEN: Discord bot token get it from here
DATABASE_URL=postgres://username:password@localhost:5432/database_name

Basically this has to be added in the starting running process?

you can get an idea from Stock Dashbaord, Dockerfile and docker-compose.

it should take an env file like this to docker-compose.

docker-compose --env-file .env  up -d 

Reference:-
https://stackoverflow.com/questions/29377853/how-to-use-environment-variables-in-docker-compose
https://github.com/Py-Contributors/Stock-Dashboard

But for what reasons we have th start_server script?

but that will not work in a windows environment. most developers prefer docker so I was thinking to add proper docker files.