version: "3" services: database: image: "postgres:12-alpine" container_name: "database" environment: - POSTGRES_USER=totopia - POSTGRES_PASSWORD=totopia - POSTGRES_DB=totopia ports: - "54320:5432" volumes: - ./postgres/data:/var/lib/postgresql:z