forked from ghacupha/erp-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yml
More file actions
96 lines (94 loc) · 4.14 KB
/
app.yml
File metadata and controls
96 lines (94 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# Erp System - Mark X No 10 (Jehoiada Series) Server ver 1.8.2
# Copyright © 2021 - 2024 Edwin Njeru and the ERP System Contributors (mailnjeru@gmail.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
version: '3.3'
services:
erp-system-server:
image: ghacupha/erp-system:1.4.0
volumes:
- ./logs/:/logs/
- ./reports-directory/:/reports-directory/
- ./generated-reports/:/generated-reports/
- ./business-documents/:/business-documents/
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,api-docs
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:admin@jhipster-registry:8761/eureka
- SPRING_CLOUD_CONFIG_URI=http://admin:admin@jhipster-registry:8761/config
#- SPRING_DATASOURCE_URL=jdbc:postgresql://erpsystem-postgresql:5432/erpSystem
#- SPRING_LIQUIBASE_URL=jdbc:postgresql://erpsystem-postgresql:5432/erpSystem
- SPRING_DATASOURCE_URL=${LOCAL_PG_SERVER}/${ERP_SYSTEM_PROD_DB}
- SPRING_LIQUIBASE_URL=${LOCAL_PG_SERVER}/${ERP_SYSTEM_PROD_DB}
- JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
#- SPRING_ELASTICSEARCH_REST_URIS=http://erpsystem-elasticsearch:9200
- SPRING_ELASTICSEARCH_REST_URIS=${SPRING_DATA_JEST_URI}
- ERP_SYSTEM_PROD_DB=${ERP_SYSTEM_PROD_DB}
- ERP_SYSTEM_DEV_DB=${ERP_SYSTEM_DEV_DB}
- ERP_SYSTEM_PORT=${ERP_SYSTEM_PORT}
- PG_DATABASE_DEV_USER=${PG_DATABASE_DEV_USER}
- PG_DATABASE_PROD_USER=${PG_DATABASE_PROD_USER}
- PG_DATABASE_DEV_PASSWORD=${PG_DATABASE_DEV_PASSWORD}
- PG_DATABASE_PROD_PASSWORD=${PG_DATABASE_PROD_PASSWORD}
- LOCAL_PG_SERVER=${LOCAL_PG_SERVER}
- ERP_SYSTEM_DEV_PORT=${ERP_SYSTEM_DEV_PORT}
- ERP_SYSTEM_PROD_PORT=${ERP_SYSTEM_PROD_PORT}
- ERP_SYSTEM_PROD_MAIL_BASE_URL=${ERP_SYSTEM_PROD_MAIL_BASE_URL}
- ERP_SYSTEM_DEV_MAIL_BASE_URL=${ERP_SYSTEM_DEV_MAIL_BASE_URL}
- SECURITY_AUTHENTICATION_JWT_BASE64_SECRET=${SECURITY_AUTHENTICATION_JWT_BASE64_SECRET}
- UPLOADS_SIZE=${UPLOADS_SIZE}
- SANDBOX_INSTANCE_URLS=${SANDBOX_INSTANCE_URLS}
- ERP_REINDEXER_INTERVAL=${ERP_REINDEXER_INTERVAL}
- ERP_DOCUMENTS_MAX_FILE_SIZE=${ERP_DOCUMENTS_MAX_FILE_SIZE}
# - LOGGING_CONFIG=${LOGGING_CONFIG}
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
#- 8980:8980
${ERP_SERVER_DEPLOYMENT_PROD_PORT}
#- 8977:8977
# erpsystem-postgresql:
# image: postgres:13.4
# # volumes:
# # - ~/volumes/jhipster/erpSystem/postgresql/:/var/lib/postgresql/data/
# environment:
# - POSTGRES_USER=erpSystem
# - POSTGRES_PASSWORD=
# - POSTGRES_HOST_AUTH_METHOD=trust
# # If you want to expose these ports outside your dev PC,
# # remove the "127.0.0.1:" prefix
# ports:
# - 127.0.0.1:5432:5432
erpsystem-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.3
# volumes:
# - ~/volumes/jhipster/erpSystem/elasticsearch/:/usr/share/elasticsearch/data/
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
#- 127.0.0.1:9200:9200
- 9200:9200
#- 127.0.0.1:9300:9300
- 9300:9300
environment:
- 'ES_JAVA_OPTS=-Xms1024m -Xmx1024m'
- 'discovery.type=single-node'
erp-client-web:
image: ghacupha/erp-client:0.1.1-SNAPSHOT
ports:
- "8981:80"