- Install Docker
- Create
Docker Hubaccount Docker Hub
Details:
- Create
.dockerignorefile and list all files that should be ignored byDocker - Create
Dockerfilethat will be used for building image ofPostgreSQLdatabase - Create
Dockerfilethat will be used for building image ofexpressapplication - Create
docker-compose.ymlfile that will be used for running multi-container application (expressapplication andPostgreSQLdatabase). Specify custom network that will be used for communication between application and database containers - Build images and scan it for security vulnerabilities
- Push built images to your private repository on
Docker Hub