-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
In this chapter, we will be using Docker to define and run a PostgreSQL database. This will enable our app to interact with a database on our local machine. Docker can be installed by following the instructions at https://docs.docker.com/engine/install/.
For some Bash scripts, we will be relying on some Postgres binaries. You will have to install Postgres by using a package manager such as brew or apt-get. However, this is not essential as we will also cover how to use Docker to make client calls to Postgres.
We will also be using Docker Compose on top of Docker to orchestrate our Docker containers. This can be installed by following the instructions at https://docs.docker.com/compose/install/.
You can download the example project and code for this book by following the instructions in the Download the example code files section in the Preface of this book.
This chapter’s code files are included in the downloadable code bundle.