|
|
|
|
@ -74,19 +74,18 @@ What this means in regards to this project is that docker makes it
|
|
|
|
|
easy to setup containers.
|
|
|
|
|
|
|
|
|
|
Install docker based on instructions for your linux distribution.
|
|
|
|
|
I use podman (an alternative from RedHat) because it allows for running without root permissions.
|
|
|
|
|
|
|
|
|
|
### Docker networking
|
|
|
|
|
|
|
|
|
|
I have the docker container for the database attached to a
|
|
|
|
|
network called "pharmaceutical_research" because I have a
|
|
|
|
|
container with pgadmin4 running on that docker network.
|
|
|
|
|
This can be adjusted in the dockerfile.
|
|
|
|
|
It is helpful to construct an external docker network by running
|
|
|
|
|
|
|
|
|
|
I also have the database container open on port 5432, the typical
|
|
|
|
|
postgresql database port.
|
|
|
|
|
`docker network create network_name`
|
|
|
|
|
|
|
|
|
|
### Database logins
|
|
|
|
|
I have choosen the database user of *root* with a password of *root*
|
|
|
|
|
because I don't really need this database to be secure.
|
|
|
|
|
and then including that network in the docker-compose.yaml
|
|
|
|
|
|
|
|
|
|
# Environment Variables (`.env` file)
|
|
|
|
|
I use an single .env file to setup the docker containers and pass configuration variables to
|
|
|
|
|
the python scripts. I would suggest changing the default values in `sample.env` to match your needs.
|
|
|
|
|
If you do need to think about the security of your database I would recommend
|
|
|
|
|
you start by changing these.
|
|
|
|
|
|