- Install Docker
- Create
Docker Hub
account Docker Hub
Details:
- Create
.dockerignore
file and list all files that should be ignored byDocker
- Create
Dockerfile
that will be used for building image ofPostgreSQL
database - Create
Dockerfile
that will be used for building image ofexpress
application - Create
docker-compose.yml
file that will be used for running multi-container application (express
application andPostgreSQL
database). 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