version: '3.7' services: sqlstr_postgres_example: container_name: sqlstr_postgres_example image: docker.io/library/postgres:16-bullseye networks: - default environment: POSTGRES_USER: root POSTGRES_PASSWORD: root POSTGRES_DB: sqlstr_example PGDATA: "/var/lib/postgresql/data" ports: - 5432:5432 networks: default: {}