Create tpv

This commit is contained in:
OneCluster 2023-06-13 02:11:48 -05:00
parent 317f70381a
commit b82cf53f33
3 changed files with 29 additions and 3 deletions

View File

@ -72,9 +72,29 @@ services:
- tryton
entrypoint: [ "bash", "-c", "/entrypoint.sh trytond-cron -c /etc/trytond.conf -d ${POSTGRES_DB} --logconf /etc/trytond_cron_logging.conf"]
env_file:
- .env
- .env
http:
image: nginx
ports:
- 80:80
volumes:
- http:/usr/share/nginx/html
tryton_app:
image: tryton/${POSTGRES_DB}:${TRYTOND_VERSION}
entrypoint: [ "bash", "-c", "/entrypoint.sh -c /etc/trytond.conf -d ${POSTGRES_DB}" ]
ports:
- 8010:8010
volumes:
- app:/app
depends_on:
- db
- tryton
env_file:
- .env
volumes:
modules:
var:
postgres:
attachment:
http:
app:

View File

@ -128,10 +128,16 @@ if [ "$Provider" == "OneTeam_Pos" ]; then
libxmlsec1-openssl \
libffi-dev \
build-essential \
libpq-dev \
uvicorn \
libreoffice \
vim \
sudo \
python3-dev \
python3-qrcode \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --upgrade pip \
&& pip3 install uvicorn fastapi fastapi_tryton orjson \
&& pip3 install -r /opt/requirements_OneTeam.txt \
&& pip3 install git+https://${GITEA_USER}:${GITEA_PASSWORD}@gitea.onecluster.org/OneTeam/oc-facho.git@documento_soporte \
&& cd ${DIR_MODULES}

View File

@ -3,5 +3,5 @@ listen=0.0.0.0:8000
root=/var/lib/trytond/www
[database]
list=False
path=/mnt/attachment
list=True
path=/mnt/attachment