mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
apphub0.0.4
This commit is contained in:
parent
be6592fe97
commit
0692696588
24
docker/apphub-dev.yml
Normal file
24
docker/apphub-dev.yml
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
|
@ -29,5 +29,5 @@ set -e
|
|||
|
||||
# start by supervisord
|
||||
/usr/bin/supervisord
|
||||
supervisorctl start all
|
||||
supervisorctl start apphub
|
||||
tail -f /dev/null
|
|
@ -2,6 +2,11 @@
|
|||
nodaemon=false
|
||||
|
||||
[program:apphub]
|
||||
command=uvicorn src.main:app --reload --host 0.0.0.0 --port 8080 --log-level error
|
||||
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/src
|
Loading…
Reference in a new issue