diff --git a/docker-compose.yml b/docker-compose.yml index fa3c71f..f10f2cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/trytond-modules_non_official.sh b/trytond-modules_non_official.sh index a0e7a82..43432c0 100644 --- a/trytond-modules_non_official.sh +++ b/trytond-modules_non_official.sh @@ -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} diff --git a/trytond.conf b/trytond.conf index ea4b20b..0d03c12 100644 --- a/trytond.conf +++ b/trytond.conf @@ -3,5 +3,5 @@ listen=0.0.0.0:8000 root=/var/lib/trytond/www [database] -list=False -path=/mnt/attachment \ No newline at end of file +list=True +path=/mnt/attachment