ports mit Doppelpunkt nach docker-compose schreiben

Stefan Fuhrmann <[email protected]>
Newsgroups gmane.comp.python.general.german
Message-ID <[email protected]>
Hallo zusammen,


ich habe ein script, das mir nextcloud ausrollt und möchte es nun 
erweitern, dass es auf ports prüft und entsprechend einen port hochzählt 
und in die docker-compose schreibt.

Im compose file wird es mit 8080:80 angegeben.


Ich habe es soweit , das es mir den port hochzählt und schreibt. Mir 
gelingt es aber nicht :80 hinzuzufügen.

Ich habe eine funktion "next_free_port" hinten soll :80 hinzu.

docker_compose["services"]["app"]["ports"] = [next_free_port() +":80"]


Ich habe versucht und gesucht. Es will mir aber nicht gelingen.

Kann jemand helfen?


Danke!

Gruß

Stefan







_______________________________________________
python-de maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/python-de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.