version: '3.8' services: db: image: postgres:latest container_name: parking_db environment: POSTGRES_USER: user POSTGRES_PASSWORD: password POSTGRES_DB: parking ports: - "5432:5432" volumes: - db_data:/var/lib/postgresql/data volumes: db_data: