├── README.md ├── Dockerfile ├── docker-compose.yaml ├── entrypoint.sh └── requirements.txt /README.md: -------------------------------------------------------------------------------- 1 | # How to start 2 | 3 | Clone the repo 4 | ``` 5 | git clone git@github.com:ata/trytond-docker.git 6 | ``` 7 | 8 | Setup database 9 | ``` 10 | git clone git@github.com:ata/tryton-docker.git 11 | docker-compose run --rm tryton trytond-admin -d postgres --all --email admin@example.com 12 | ``` 13 | 14 | Start trytond 15 | ``` 16 | docker-compose up -d 17 | ``` 18 | 19 | 20 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.7-slim 2 | RUN apt-get update && \ 3 | apt-get install wait-for-it && \ 4 | rm -rf /var/cache/apt 5 | WORKDIR /app 6 | COPY requirements.txt requirements.txt 7 | RUN pip install --no-cache-dir -r requirements.txt 8 | COPY entrypoint.sh /entrypoint.sh 9 | RUN chmod +x /entrypoint.sh 10 | ENTRYPOINT ["/entrypoint.sh"] 11 | EXPOSE 8000 12 | CMD ["trytond"] 13 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | 3 | services: 4 | postgres: 5 | image: postgres:12 6 | volumes: 7 | - db-data:/var/lib/postgresql/data 8 | environment: 9 | POSTGRES_PASSWORD: s3cret 10 | ports: 11 | - "5432:5432" 12 | 13 | tryton: 14 | image: palibaya/tryton:5.8-2 15 | volumes: 16 | - .:/app 17 | ports: 18 | - "8000:8000" 19 | depends_on: 20 | - postgres 21 | environment: 22 | TRYTOND_DATABASE__HOST: postgres 23 | TRYTOND_DATABASE__PASSWORD: s3cret 24 | TRYTOND_DATABASE__NAME: postgres 25 | TRYTOND_ADMIN_PASSWORD: admin1234 26 | 27 | volumes: 28 | db-data: 29 | 30 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | TRYTOND_DATABASE__HOST=${TRYTOND_DATABASE__HOST:-postgres} 5 | TRYTOND_DATABASE__PORT=${TRYTOND_DATABASE__PORT:-5432} 6 | TRYTOND_DATABASE__USERNAME=${TRYTOND_DATABASE__USERNAME:-postgres} 7 | TRYTOND_DATABASE__PASSWORD=${TRYTOND_DATABASE__PASSWORD:-} 8 | TRYTOND_DATABASE__NAME=${TRYTOND_DATABASE__NAME:-postgres} 9 | DATABASE_URI="postgresql://${TRYTOND_DATABASE__USERNAME}:${TRYTOND_DATABASE__PASSWORD}@${TRYTOND_DATABASE__HOST}:${TRYTOND_DATABASE__PORT}/${TRYTOND_DATABASE__NAME}" 10 | 11 | export TRYTOND_DATABASE__URI="${TRYTOND_DATABASE__URI:-"$DATABASE_URI"}" 12 | export TRYTOND_DATABASE__LIST="${TRYTOND_DATABASE_LIST:-False}" 13 | export TRYTOND_WEB__LISTEN="${TRYTOND_WEB__LISTEN:-"0.0.0.0:8000"}" 14 | export TRYTOND_ADMIN_PASSWORD=${TRYTOND_ADMIN_PASSWORD:-admin123} 15 | export TRYTONPASSFILE="/etc/.pass" 16 | echo $TRYTOND_ADMIN_PASSWORD > $TRYTONPASSFILE 17 | 18 | # Wait for database 19 | wait-for-it ${TRYTOND_DATABASE__HOST}:${TRYTOND_DATABASE__PORT} 20 | 21 | if [ "$1" = 'trytond' ]; then 22 | shift 23 | exec trytond -d $TRYTOND_DATABASE__NAME "$@" 24 | else 25 | exec "$@" 26 | fi 27 | 28 | if [ "$1" = 'trytond-admin' ]; then 29 | rm -f $TRYTONPASSFILE 30 | fi 31 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | psycopg2-binary==2.8.6 2 | trytond-account==5.8.0 3 | trytond-account-asset==5.8.0 4 | trytond-account-be==5.8.0 5 | trytond-account-cash-rounding==5.8.0 6 | trytond-account-credit-limit==5.8.0 7 | trytond-account-de-skr03==5.8.0 8 | trytond-account-deposit==5.8.0 9 | trytond-account-dunning==5.8.0 10 | trytond-account-dunning-email==5.8.0 11 | trytond-account-dunning-fee==5.8.0 12 | trytond-account-dunning-letter==5.8.0 13 | trytond-account-es==5.8.0 14 | trytond-account-eu==5.8.0 15 | trytond-account-fr==5.8.0 16 | trytond-account-fr-chorus==5.8.0 17 | trytond-account-invoice==5.8.0 18 | trytond-account-invoice-correction==5.8.0 19 | trytond-account-invoice-history==5.8.0 20 | trytond-account-invoice-line-standalone==5.8.0 21 | trytond-account-invoice-secondary-unit==5.8.0 22 | trytond-account-invoice-stock==5.8.0 23 | trytond-account-payment==5.8.0 24 | trytond-account-payment-braintree==5.8.0 25 | trytond-account-payment-clearing==5.8.0 26 | trytond-account-payment-sepa==5.8.0 27 | trytond-account-payment-sepa-cfonb==5.8.0 28 | trytond-account-payment-stripe==5.8.0 29 | trytond-account-product==5.8.0 30 | trytond-account-statement==5.8.0 31 | trytond-account-statement-aeb43==5.8.0 32 | trytond-account-statement-coda==5.8.0 33 | trytond-account-statement-ofx==5.8.0 34 | trytond-account-statement-rule==5.8.1 35 | trytond-account-stock-anglo-saxon==5.8.0 36 | trytond-account-stock-continental==5.8.0 37 | trytond-account-stock-landed-cost==5.8.0 38 | trytond-account-stock-landed-cost-weight==5.8.0 39 | trytond-account-tax-cash==5.8.0 40 | trytond-account-tax-rule-country==5.8.0 41 | trytond-analytic-account==5.8.0 42 | trytond-analytic-invoice==5.8.0 43 | trytond-analytic-purchase==5.8.0 44 | trytond-analytic-sale==5.8.0 45 | trytond-attendance==5.8.0 46 | trytond-authentication-sms==5.8.0 47 | trytond-bank==5.8.0 48 | trytond-carrier==5.8.0 49 | trytond-carrier-percentage==5.8.0 50 | trytond-carrier-weight==5.8.0 51 | trytond-commission==5.8.1 52 | trytond-commission-waiting==5.8.0 53 | trytond-company==5.8.0 54 | trytond-company-work-time==5.8.0 55 | trytond-country==5.8.0 56 | trytond-currency==5.8.0 57 | trytond-customs==5.8.0 58 | trytond-dashboard==5.8.0 59 | trytond-edocument-uncefact==5.8.0 60 | trytond-edocument-unece==5.8.0 61 | trytond-google-maps==5.8.0 62 | trytond-ldap-authentication==5.8.0 63 | trytond-marketing==5.8.0 64 | trytond-marketing-automation==5.8.1 65 | trytond-marketing-email==5.8.0 66 | trytond-notification-email==5.8.0 67 | trytond-party==5.8.0 68 | trytond-party-relationship==5.8.0 69 | trytond-party-siret==5.8.0 70 | trytond-product==5.8.0 71 | trytond-product-attribute==5.8.0 72 | trytond-product-classification==5.8.0 73 | trytond-product-classification-taxonomic==5.8.0 74 | trytond-product-cost-fifo==5.8.0 75 | trytond-product-cost-history==5.8.0 76 | trytond-product-measurements==5.8.0 77 | trytond-product-price-list==5.8.0 78 | trytond-product-price-list-dates==5.8.0 79 | trytond-product-price-list-parent==5.8.0 80 | trytond-production==5.8.0 81 | trytond-production-outsourcing==5.8.0 82 | trytond-production-routing==5.8.0 83 | trytond-production-split==5.8.0 84 | trytond-production-work==5.8.0 85 | trytond-production-work-timesheet==5.8.0 86 | trytond-project==5.8.0 87 | trytond-project-invoice==5.8.0 88 | trytond-project-plan==5.8.0 89 | trytond-project-revenue==5.8.0 90 | trytond-purchase==5.8.0 91 | trytond-purchase-amendment==5.8.0 92 | trytond-purchase-history==5.8.0 93 | trytond-purchase-invoice-line-standalone==5.8.0 94 | trytond-purchase-request==5.8.0 95 | trytond-purchase-request-quotation==5.8.0 96 | trytond-purchase-requisition==5.8.0 97 | trytond-purchase-secondary-unit==5.8.0 98 | trytond-purchase-shipment-cost==5.8.0 99 | trytond-sale==5.8.0 100 | trytond-sale-advance-payment==5.8.0 101 | trytond-sale-amendment==5.8.0 102 | trytond-sale-complaint==5.8.0 103 | trytond-sale-credit-limit==5.8.0 104 | trytond-sale-discount==5.8.1 105 | trytond-sale-extra==5.8.0 106 | trytond-sale-history==5.8.0 107 | trytond-sale-invoice-grouping==5.8.0 108 | trytond-sale-opportunity==5.8.0 109 | trytond-sale-payment==5.8.0 110 | trytond-sale-price-list==5.8.0 111 | trytond-sale-product-customer==5.8.0 112 | trytond-sale-promotion==5.8.0 113 | trytond-sale-promotion-coupon==5.8.0 114 | trytond-sale-secondary-unit==5.8.0 115 | trytond-sale-shipment-cost==5.8.1 116 | trytond-sale-shipment-grouping==5.8.0 117 | trytond-sale-shipment-tolerance==5.8.0 118 | trytond-sale-stock-quantity==5.8.0 119 | trytond-sale-subscription==5.8.0 120 | trytond-sale-subscription-asset==5.8.0 121 | trytond-sale-supply==5.8.0 122 | trytond-sale-supply-drop-shipment==5.8.0 123 | trytond-sale-supply-production==5.8.0 124 | trytond-stock==5.8.1 125 | trytond-stock-assign-manual==5.8.0 126 | trytond-stock-consignment==5.8.0 127 | trytond-stock-forecast==5.8.0 128 | trytond-stock-inventory-location==5.8.0 129 | trytond-stock-location-move==5.8.0 130 | trytond-stock-location-sequence==5.8.0 131 | trytond-stock-lot==5.8.1 132 | trytond-stock-lot-sled==5.8.0 133 | trytond-stock-lot-unit==5.8.0 134 | trytond-stock-package==5.8.0 135 | trytond-stock-package-shipping==5.8.0 136 | trytond-stock-package-shipping-dpd==5.8.0 137 | trytond-stock-package-shipping-ups==5.8.1 138 | trytond-stock-product-location==5.8.0 139 | trytond-stock-secondary-unit==5.8.0 140 | trytond-stock-shipment-measurements==5.8.0 141 | trytond-stock-split==5.8.0 142 | trytond-stock-supply==5.8.0 143 | trytond-stock-supply-day==5.8.0 144 | trytond-stock-supply-forecast==5.8.0 145 | trytond-stock-supply-production==5.8.0 146 | trytond-timesheet==5.8.0 147 | trytond-timesheet-cost==5.8.0 148 | trytond-user-role==5.8.0 149 | trytond-web-shop==5.8.0 150 | trytond-web-shop-vue-storefront==5.8.0 151 | trytond-web-shop-vue-storefront-stripe==5.8.0 152 | trytond-web-shortener==5.8.0 153 | trytond-web-user==5.8.1 154 | --------------------------------------------------------------------------------