1
0

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
+7 -3
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/
+11
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:
-1
View File
@@ -1,6 +1,5 @@
/node_modules/
/.env
/storage
stdout.log
/dist
/build
+3
View File
@@ -0,0 +1,3 @@
*
!pdf/
!.gitignore
+2
View File
@@ -0,0 +1,2 @@
*
!.gitignore