feat: add gotenberg configure of prod

This commit is contained in:
Ahmed Bouhuolia
2023-12-04 22:34:21 +02:00
parent 30b5f8120a
commit bf2dc844d2
5 changed files with 23 additions and 4 deletions

View File

@@ -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/

View File

@@ -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:

View File

@@ -1,6 +1,5 @@
/node_modules/
/.env
/storage
stdout.log
/dist
/build

3
packages/server/storage/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*
!pdf/
!.gitignore

View File

@@ -0,0 +1,2 @@
*
!.gitignore