homelab/bxl-rpi/apps/docker-compose.invoice.yaml

80 lines
2.3 KiB
YAML
Raw Normal View History

2023-05-01 16:40:46 +02:00
services:
invoicenginx:
container_name: invoice_nginx
image: nginx:latest
restart: on-failure
volumes:
- $CONFIG/invoiceninja/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
- $DATA/invoiceninja/public:/var/www/app/public:ro
environment:
- TRUSTED_PROXIES='*'
depends_on:
- invoiceninja
networks:
- invoice
- external
2023-05-19 21:33:13 +02:00
#labels:
#- "traefik.enable=true"
#- "traefik.http.routers.invoice.rule=Host(`invoice.bhasher.com`)"
#- "traefik.http.services.invoice.loadbalancer.server.port=80"
#- "traefik.http.routers.invoice.tls=true"
#- "traefik.http.routers.invoice.tls.certresolver=http"
#- "traefik.http.routers.invoice.entrypoints=internalsecure"
2023-05-01 16:40:46 +02:00
invoiceninja:
image: invoiceninja/invoiceninja:5
container_name: invoice_ninja
environment:
- APP_URL=https://invoice.bhasher.com
- APP_KEY=${INVOICENINJA_APIKEY}
- REQUIRE_HTTPS=true
- PHANTOMJS_PDF_GENERATION=false
- PDF_GENERATOR=snappdf
- QUEUE_CONNECTION=database
- DB_HOST=mariadb
- DB_DATABASE=invoiceninja
- DB_USERNAME=root
- DB_PASSWORD=${MARIADB_ROOT}
- IN_USER_EMAIL=invoice@bhasher.com
- IN_PASSWORD=${INVOICENINJA_PASSWORD}
- TRUSTED_PROXIES='*'
restart: unless-stopped
volumes:
- $DATA/invoiceninja/public:/var/www/app/public:rw
- $DATA/invoiceninja/storage:/var/www/app/storage:rw
networks:
- invoice
- storage
2023-05-19 21:33:13 +02:00
invoiceplane:
container_name: invoiceplane
image: mhzawadi/invoiceplane:latest
volumes:
- $DATA/invoiceplane/uploads:/var/www/html/uploads
- $DATA/invoiceplane/ipconfig.php:/var/www/html/ipconfig.php
- /etc/localtime:/etc/localtime:ro
environment:
- IP_URL=https://invoice.bhasher.com
#- MYSQL_HOST=mariadb
#- MYSQL_USER=root
#- MYSQL_PASSWORD=${MARIADB_ROOT}
#- MYSQL_DB=InvoicePlane
#- DISABLE_SETUP=false
labels:
- "traefik.enable=true"
- "traefik.http.routers.invoice.rule=Host(`invoice.bhasher.com`)"
- "traefik.http.services.invoice.loadbalancer.server.port=80"
- "traefik.http.routers.invoice.tls=true"
- "traefik.http.routers.invoice.tls.certresolver=http"
- "traefik.http.routers.invoice.entrypoints=internalsecure"
networks:
- external
- storage
2023-05-01 16:40:46 +02:00
networks:
invoice:
external:
external: true
storage:
external: true