name: 'agendas-db' services: db: image: 'postgres:16' environment: POSTGRES_USER: "${DB_USER:?}" POSTGRES_PASSWORD: "${DB_PASSWORD:?}" POSTGRES_DATABASE: "${DB_DATABASE:?}" restart: 'unless-stopped' ports: - '5432:5432' volumes: - 'db-data:/var/lib/postgresql/data/' volumes: db-data: