This commit is contained in:
qiaofeng1227 2023-05-19 16:25:15 +08:00
parent 1386e45978
commit dc94c1bed5
2 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisords
# Install supervisord
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View File

@ -364,24 +364,24 @@ def get_apps_from_compose():
try:
app_version = env_map.get("APP_VERSION")
volume_data = ["/var/lib/docker/volumes"]
user_name = env_map.get("APP_USER")
password = env_map.get("POWER_PASSWORD")
user_name = env_map.get("APP_USER","")
password = env_map.get("POWER_PASSWORD","")
except IndexError:
pass
try:
replace = env_map.get("APP_URL_REPLACE")
replace = env_map.get("APP_URL_REPLACE","false")
myLogger.info_logger("replace="+replace)
if replace == "true":
app_replace_url = True
https = env_map.get("APP_HTTPS_ACCESS")
https = env_map.get("APP_HTTPS_ACCESS","")
if https == "true":
app_https = True
except IndexError:
pass
try:
http_port = env_map.get("APP_HTTP_PORT")
http_port = env_map.get("APP_HTTP_PORT","0")
if http_port:
port = int(http_port)
except IndexError: