mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: add gotenberg configure of prod
This commit is contained in:
10
.env.example
10
.env.example
@@ -51,6 +51,10 @@ SIGNUP_ALLOWED_EMAILS=
|
||||
# API rate limit (points,duration,block duration).
|
||||
API_RATE_LIMIT=120,60,600
|
||||
|
||||
# Gotenberg API for PDF printing.
|
||||
GOTENBERG_URL=http://localhost:9000
|
||||
GOTENBERG_DOCS_URL=http://host.docker.internal:3000/public/
|
||||
# Gotenberg API for PDF printing - (production).
|
||||
GOTENBERG_URL=http://gotenberg:3000
|
||||
GOTENBERG_DOCS_URL=http://server:3000/public/
|
||||
|
||||
# Gotenberg API - (development)
|
||||
# GOTENBERG_URL=http://gotenberg:3000
|
||||
# GOTENBERG_DOCS_URL=http://server:3000/public/
|
||||
@@ -35,6 +35,8 @@ services:
|
||||
server:
|
||||
container_name: bigcapital-server
|
||||
image: ghcr.io/bigcapitalhq/server:latest
|
||||
expose:
|
||||
- '3000'
|
||||
links:
|
||||
- mysql
|
||||
- mongo
|
||||
@@ -86,6 +88,10 @@ services:
|
||||
- SIGNUP_ALLOWED_DOMAINS=${SIGNUP_ALLOWED_DOMAINS}
|
||||
- SIGNUP_ALLOWED_EMAILS=${SIGNUP_ALLOWED_EMAILS}
|
||||
|
||||
# Gotenberg (Pdf generator)
|
||||
- GOTENBERG_URL=${GOTENBERG_URL}
|
||||
- GOTENBERG_DOCS_URL=${GOTENBERG_DOCS_URL}
|
||||
|
||||
database_migration:
|
||||
container_name: bigcapital-database-migration
|
||||
build:
|
||||
@@ -143,6 +149,11 @@ services:
|
||||
volumes:
|
||||
- redis:/data
|
||||
|
||||
gotenberg:
|
||||
image: gotenberg/gotenberg:7
|
||||
expose:
|
||||
- '9000'
|
||||
|
||||
# Volumes
|
||||
volumes:
|
||||
mysql:
|
||||
|
||||
1
packages/server/.gitignore
vendored
1
packages/server/.gitignore
vendored
@@ -1,6 +1,5 @@
|
||||
/node_modules/
|
||||
/.env
|
||||
/storage
|
||||
stdout.log
|
||||
/dist
|
||||
/build
|
||||
|
||||
3
packages/server/storage/.gitignore
vendored
Normal file
3
packages/server/storage/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*
|
||||
!pdf/
|
||||
!.gitignore
|
||||
2
packages/server/storage/pdf/.gitignore
vendored
Normal file
2
packages/server/storage/pdf/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user