Hello. I`m trying to evaluate Tryton (vs Odoo) and have hard time to get it starting up for the first time after the deployment on my test Synology with Portainer.
I have used the compose file provided here Tryton / Tryton Docker · GitLab, tuned it a little bit to reflect volume locations and published ports, left everything else on defaults.
The stack deploys without any errors, but the web part seems to be not there.
The “tryton-data” volume is empty.
Server log shows
[2024-10-14 13:49:42 +0000] [11] [INFO] Starting gunicorn 20.1.0
[2024-10-14 13:49:42 +0000] [11] [INFO] Listening at: http://0.0.0.0:8000 (11)
[2024-10-14 13:49:42 +0000] [11] [INFO] Using worker: sync
[2024-10-14 13:49:42 +0000] [12] [INFO] Booting worker with pid: 12
Postgress log below, it looks like there is no connection to the database from the app?
2024-10-14 14:26:02.910 UTC [1] LOG: starting PostgreSQL 17.0 (Debian 17.0-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-10-14 14:26:02.911 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-10-14 14:26:02.911 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-10-14 14:26:02.917 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-10-14 14:26:02.920 UTC [30] LOG: database system was shut down at 2024-10-14 14:13:06 UTC
2024-10-14 14:26:02.924 UTC [1] LOG: database system is ready to accept connections
2024-10-14 14:26:03.276 UTC [34] LOG: incomplete startup packet
I dont get what i am doing wrong here. Got Odoo running without big issues…
PS: compose file follows
services:
server:
image: tryton/tryton:7.2
container_name: tryton-server
environment:
- DB_PASSWORD=${DB_PASSWORD:-password}
ports:
- "8059:8059"
volumes:
- "/volume1/docker/tryton/tryton-data:/var/lib/trytond/db"
command:
- /bin/bash
- -c
- |
(until echo > /dev/tcp/$${DB_HOSTNAME:=$${POSTGRES_PORT_5432_TCP_ADDR:='postgres'}}/$${DB_PORT:=$${POSTGRES_PORT_5432_TCP_PORT:='5432'}}; do sleep 0.5; done) 2>/dev/null
echo "${PASSWORD:-admin}" > /tmp/.passwd
TRYTONPASSFILE=/tmp/.passwd /entrypoint.sh trytond-admin -d "${DB_NAME:-tryton}" --all --email "${EMAIL:-}" -vv
if command -v uwsgi &>/dev/null; then uwsgi --ini /etc/uwsgi.conf; else gunicorn --config=/etc/gunicorn.conf.py; fi
depends_on:
- postgres
cron:
image: tryton/tryton:7.2
container_name: tryton-cron
environment:
- DB_PASSWORD=${DB_PASSWORD:-password}
volumes:
- "/volume1/docker/tryton/tryton-data:/var/lib/trytond/db"
command:
- /bin/bash
- -c
- |
(until echo > /dev/tcp/tryton/8059; do sleep 0.5; done) 2>/dev/null
trytond-cron -d "${DB_NAME:-tryton}"
depends_on:
- postgres
- server
postgres:
image: postgres:${PG_VERSION:-latest}
container_name: tryton-postgres
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD:-password}
- POSTGRES_DB=${DB_NAME:-tryton}
volumes:
- "/volume1/docker/tryton/postgres-data:/var/lib/postgresql/data"