Create tpv
This commit is contained in:
parent
317f70381a
commit
b82cf53f33
|
@ -72,9 +72,29 @@ services:
|
||||||
- tryton
|
- tryton
|
||||||
entrypoint: [ "bash", "-c", "/entrypoint.sh trytond-cron -c /etc/trytond.conf -d ${POSTGRES_DB} --logconf /etc/trytond_cron_logging.conf"]
|
entrypoint: [ "bash", "-c", "/entrypoint.sh trytond-cron -c /etc/trytond.conf -d ${POSTGRES_DB} --logconf /etc/trytond_cron_logging.conf"]
|
||||||
env_file:
|
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:
|
volumes:
|
||||||
modules:
|
modules:
|
||||||
var:
|
var:
|
||||||
postgres:
|
postgres:
|
||||||
attachment:
|
attachment:
|
||||||
|
http:
|
||||||
|
app:
|
||||||
|
|
|
@ -128,10 +128,16 @@ if [ "$Provider" == "OneTeam_Pos" ]; then
|
||||||
libxmlsec1-openssl \
|
libxmlsec1-openssl \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
build-essential \
|
build-essential \
|
||||||
|
libpq-dev \
|
||||||
|
uvicorn \
|
||||||
|
libreoffice \
|
||||||
|
vim \
|
||||||
|
sudo \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-qrcode \
|
python3-qrcode \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& pip3 install --upgrade pip \
|
&& pip3 install --upgrade pip \
|
||||||
|
&& pip3 install uvicorn fastapi fastapi_tryton orjson \
|
||||||
&& pip3 install -r /opt/requirements_OneTeam.txt \
|
&& pip3 install -r /opt/requirements_OneTeam.txt \
|
||||||
&& pip3 install git+https://${GITEA_USER}:${GITEA_PASSWORD}@gitea.onecluster.org/OneTeam/oc-facho.git@documento_soporte \
|
&& pip3 install git+https://${GITEA_USER}:${GITEA_PASSWORD}@gitea.onecluster.org/OneTeam/oc-facho.git@documento_soporte \
|
||||||
&& cd ${DIR_MODULES}
|
&& cd ${DIR_MODULES}
|
||||||
|
|
|
@ -3,5 +3,5 @@ listen=0.0.0.0:8000
|
||||||
root=/var/lib/trytond/www
|
root=/var/lib/trytond/www
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
list=False
|
list=True
|
||||||
path=/mnt/attachment
|
path=/mnt/attachment
|
||||||
|
|
Loading…
Reference in New Issue