Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5697

[Python-de] ports mit Doppelpunkt nach docker-compose schreiben

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Stefan Fuhrmann <stefan@fuhrmann.homedns.org>
Newsgroups de.comp.lang.python
Subject [Python-de] ports mit Doppelpunkt nach docker-compose schreiben
Date Thu, 22 Oct 2020 15:12:34 +0200
Lines 35
Message-ID <mailman.91.1603372883.17029.python-de@python.org> (permalink)
References <e2b2aaec-fc21-db66-e7d9-8cbac5989723@fuhrmann.homedns.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de oiAnIlH4H8DTpiYLDzfgjgBSqDryWeLo+gnKCouw2GGQ==
Return-Path <stefan@fuhrmann.homedns.org>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
Authentication-Results mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Virus-Scanned Debian amavisd-new at willy.nopanicsystems.net
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
Content-Language en-US
X-Content-Filtered-By Mailman/MimeDel 2.1.34
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.34
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <https://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <e2b2aaec-fc21-db66-e7d9-8cbac5989723@fuhrmann.homedns.org>
Xref csiph.com de.comp.lang.python:5697

Show key headers only | View raw


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






Back to de.comp.lang.python | Previous | Next | Find similar


Thread

[Python-de] ports mit Doppelpunkt nach docker-compose schreiben Stefan Fuhrmann <stefan@fuhrmann.homedns.org> - 2020-10-22 15:12 +0200

csiph-web