services: postgres: image: postgres:latest ports: - "127.0.0.1:5432:5432" volumes: - ./pg_data:/var/lib/postgres environment: