Setup Instructions
setup_instructions
User Manual:
Open the PDF directly: View PDF .
Page Count: 4
After Docker is installed, open PowerShell or linux and execute the following commands. These
commands pull the latest Docker images, stop any running images, remove any existing images, and
then run the latest images. Finally, logs are pulled for the latest running images. If any of these
commands time out, the command should be executed again.
Pull the releases from dockerhub
docker pull natoma/adpq2:web.release
docker pull natoma/adpq2:api.release
docker pull natoma/adpq2:postgresdb.release
stop the docker instances
docker stop adpq2prodweb
docker stop adpq2prodapi
docker stop adpq2proddb
docker rm adpq2prodweb
docker rm adpq2prodapi
docker rm adpq2proddb
Start the docker instances
docker run -d -p 5432:5432 --name adpq2proddb natoma/adpq2:postgresdb.release
docker run -d -p 5050:5050 --name adpq2prodapi natoma/adpq2:api.release
docker run -d -p 5000:5000 --name adpq2prodweb natoma/adpq2:web.release
docker logs adpq2prodweb
docker logs adpq2prodapi
docker logs adpq2proddb
At this point, the Web server and the Web API server and the Database server should all be ready to
test. To validate this, open a browser and key the following URL into the address bar:
http://localhost:5000. If the following is displayed, the Web server is responding.
You can do the same on the API at http://localhost:5050/swagger
Additional information:
The default setup assumes that the Web server Docker container and the Web API server Docker
container are both running on the same local machine (i.e. localhost), on the default configured ports
(i.e., 5000 and 5050). If this assumption is not true, config files must be changed on one or both Docker
containers. The files to change are the appsettings.production.json and appsettings.Production.json on
the webapi and web projects respectively.
If you encounter any issues connecting to the database you may want to install Postgress locally and run
the script named adpq_db_create_postgres.sql to create user and database from
Com.Natoma.Adpq.Prototype.Api/DB.
The Docker images ran well and were used for production on our Amazon Linux environment.