apphub0.0.4

This commit is contained in:
qiaofeng1227 2023-10-10 16:20:50 +08:00
parent be6592fe97
commit 0692696588
4 changed files with 32 additions and 3 deletions

24
docker/apphub-dev.yml Normal file
View file

@ -0,0 +1,24 @@
version: "3.8"
services:
apphub:
image: websoft9dev/apphub:$APPHUB_VERSION
container_name: websoft9-apphub
build:
context: .
dockerfile_inline: |
websoft9dev/apphub:$APPHUB_VERSION
RUN cp -r /websoft9/apphub /websoft9/src
RUN sed -i 's/supervisorctl start apphub/supervisorctl start apphubdev/g' /entrypoint.sh
VOLUME /websoft9/src
ports:
- 9001-9999:8080
restart: always
volumes:
- /data/mysource:/websoft9/src
- apphub_media:/websoft9/media
- apphub_logs:/websoft9/apphub/logs
depends_on:
- deployment
- git
- proxy

View file

@ -1,6 +1,6 @@
FROM python:3.10-bullseye AS buildstage
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="0.0.3"
LABEL version="0.0.4"
ENV LIBRARY_VERSION=v0.5.8

View file

@ -29,5 +29,5 @@ set -e
# start by supervisord
/usr/bin/supervisord
supervisorctl start all
supervisorctl start apphub
tail -f /dev/null

View file

@ -2,6 +2,11 @@
nodaemon=false
[program:apphub]
command=uvicorn src.main:app --host 0.0.0.0 --port 8080 --log-level error
autostart=true
directory=/websoft9/apphub
[program:apphubdev]
command=uvicorn src.main:app --reload --host 0.0.0.0 --port 8080 --log-level error
autostart=true
directory=/websoft9/apphub
directory=/websoft9/src