mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +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 (points,duration,block duration).
|
||||||
API_RATE_LIMIT=120,60,600
|
API_RATE_LIMIT=120,60,600
|
||||||
|
|
||||||
# Gotenberg API for PDF printing.
|
# Gotenberg API for PDF printing - (production).
|
||||||
GOTENBERG_URL=http://localhost:9000
|
GOTENBERG_URL=http://gotenberg:3000
|
||||||
GOTENBERG_DOCS_URL=http://host.docker.internal:3000/public/
|
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:
|
server:
|
||||||
container_name: bigcapital-server
|
container_name: bigcapital-server
|
||||||
image: ghcr.io/bigcapitalhq/server:latest
|
image: ghcr.io/bigcapitalhq/server:latest
|
||||||
|
expose:
|
||||||
|
- '3000'
|
||||||
links:
|
links:
|
||||||
- mysql
|
- mysql
|
||||||
- mongo
|
- mongo
|
||||||
@@ -86,6 +88,10 @@ services:
|
|||||||
- SIGNUP_ALLOWED_DOMAINS=${SIGNUP_ALLOWED_DOMAINS}
|
- SIGNUP_ALLOWED_DOMAINS=${SIGNUP_ALLOWED_DOMAINS}
|
||||||
- SIGNUP_ALLOWED_EMAILS=${SIGNUP_ALLOWED_EMAILS}
|
- SIGNUP_ALLOWED_EMAILS=${SIGNUP_ALLOWED_EMAILS}
|
||||||
|
|
||||||
|
# Gotenberg (Pdf generator)
|
||||||
|
- GOTENBERG_URL=${GOTENBERG_URL}
|
||||||
|
- GOTENBERG_DOCS_URL=${GOTENBERG_DOCS_URL}
|
||||||
|
|
||||||
database_migration:
|
database_migration:
|
||||||
container_name: bigcapital-database-migration
|
container_name: bigcapital-database-migration
|
||||||
build:
|
build:
|
||||||
@@ -143,6 +149,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- redis:/data
|
||||||
|
|
||||||
|
gotenberg:
|
||||||
|
image: gotenberg/gotenberg:7
|
||||||
|
expose:
|
||||||
|
- '9000'
|
||||||
|
|
||||||
# Volumes
|
# Volumes
|
||||||
volumes:
|
volumes:
|
||||||
mysql:
|
mysql:
|
||||||
|
|||||||
1
packages/server/.gitignore
vendored
1
packages/server/.gitignore
vendored
@@ -1,6 +1,5 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/.env
|
/.env
|
||||||
/storage
|
|
||||||
stdout.log
|
stdout.log
|
||||||
/dist
|
/dist
|
||||||
/build
|
/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