Run a Web Container and PostgreSQL with Docker Compose
Docker Compose starts related containers from one YAML file. This guide runs a web server, a private PostgreSQL database and a separate database-check command, with a named volume for database files.