What is Tryton?
Tryton Is a three-tier high-level general purpose application platform under the license GPL-3 written in Python and using PostgreSQL as database engine.
It is the core base of a complete business solution providing modularity, scalability and security.
Tags
Each series published is tagged with the version of the series and the suffix -office
.
The -office
suffixed images can convert OpenDocument to other format like PDF.
The latest
and office
tagged images point to the last series published.
How to use this image
Start a PostgreSQL instance
$ docker run --name tryton-postgres -e POSTGRES_PASSWORD=mysecretpassword -e POSTGRES_DB=tryton -d postgres
Setup the database
$ docker run --link tryton-postgres:postgres -e DB_PASSWORD=mysecretpassword -it tryton/tryton trytond-admin -d tryton --all
Start a Tryton instance
$ docker run --name tryton -p 8000:8000 --link tryton-postgres:postgres -e DB_PASSWORD=mysecretpassword -d tryton/tryton
You can connect to Tryton using http://localhost:8000/
Start a Tryton cron instance
$ docker run --name tryton-cron --link tryton-postgres:postgres -e DB_PASSWORD=mysecretpassword -d tryton/tryton trytond-cron -d tryton
Command arguments
Since the 4.6 series, if COMMAND starts with a -
, it is appended as argument to the default COMMAND.
To see all arguments available run:
$ docker run --rm -ti tryton/tryton --help
Deploy with compose file
Here is an example of compose.yml
.
$ curl https://foss.heptapod.net/tryton/tryton-docker/-/raw/branch/default/compose.yml -o compose.yml
$ docker compose -f compose.yml -p tryton up
You can connect to Tryton using http://localhost:8000/
Environment variables
An .env
file can be used to define environment variables:
VERSION
The docker image tag of Tryton. Default is latest
.
PASSWORD
The password of admin
user. Default is password
.
EMAIL
The email address of the admin
user. Default is ``.
PG_VERSION
The docker image tag of the Postgres. Default is latest
.
DB_NAME
The name of the database. Default is tryton
.
DB_PASSWORD
The database password. Default is password
.