Closed tjakobi closed 4 years ago
The code in Medex is different, it depends on which database we use for Medex, so we also need two different images for Medex.
To build the Medex image with a Redis image or with PostgreSQL image always enough is only one command: docker-compose up
I set a different Medex image name and various ports Medex with Redis use port 80, and Medex with PostgreSQL use port 800 we can change it in ./docker-compose.yml. Postgresql is running on port 5432 in the container and is expose on the host on 5428. and Redis use deafult port 6379.
We can log in to PostgreSQL using these commands(after when we created image):
docker-compose run database bash psql --host=database --username=test --dbname=example password to database is - test
The data are load to database from import folder.
We need the few lines of docker commands that are required to build
in order to deploy the containers on the the cluster.
Containers will be deployed on the application server miranda if everything goes according to plan.