Docker run zu Docker compose Konverter

Wandle docker run-Befehle in docker-compose-Dateien um!

version: '3.9'
services:
    nginx:
        image: nginx
        logging:
            options:
                max-size: 1g
        restart: always
        volumes:
            - '/var/run/docker.sock:/tmp/docker.sock:ro'
        ports:
            - '80:80'