feat: use the latest PostgreSQL release as named version

Using the `latest` tag is bad practice.

Also reference the full path of the container image including its
container registry as for example Podman Compose doesn't default to
Docker Hub.
This commit is contained in:
Christoph Schug 2024-03-02 16:06:02 +01:00
parent 89f8ecb4a5
commit e2d527ec67

View File

@ -3,8 +3,7 @@ version: "3.8"
services:
postgres:
# (Recommended) replace "latest" with specific version
image: postgres:latest
image: docker.io/library/postgres:16.2
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}