-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices.yml
110 lines (102 loc) · 2.63 KB
/
services.yml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.3'
networks:
calvary-erp-network:
driver: bridge
services:
postgres:
image: postgres:16.4-bullseye
container_name: postgres_container
environment:
POSTGRES_USER: ${PG_DATABASE_PROD_USER}
POSTGRES_PASSWORD: ${PG_DATABASE_PROD_PASSWORD}
POSTGRES_DB: calvaryErpApi
ports:
- '5436:5432'
volumes:
- pgdata:/var/lib/postgresql/data
- pgconf:/etc/postgresql
- pglog:/var/log/postgresql
networks:
- calvary-erp-network
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 30s
timeout: 10s
retries: 5
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin_container
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- '5050:80'
volumes:
- ./pgadmindata:/var/lib/pgadmin
networks:
- calvary-erp-network
depends_on:
- postgres
calvary-erp-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.4
volumes:
- ./search-index-directory:/usr/share/elasticsearch/data
ports:
- '9201:9200'
- '9301:9300'
environment:
- 'ES_JAVA_OPTS=-Xms256m -Xmx256m'
- 'discovery.type=single-node'
- 'xpack.security.enabled=false'
- 'http.port=9201'
networks:
- calvary-erp-network
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:9201/_cluster/health?wait_for_status=green&timeout=10s' ]
interval: 5s
timeout: 5s
retries: 100
consul:
image: docker.io/bitnami/consul:1.19.1
ports:
- 127.0.0.1:8300:8300
- 127.0.0.1:8500:8500
- 127.0.0.1:8600:8600
command: consul agent -dev -ui -client 0.0.0.0 -log-level=INFO
networks:
- calvary-erp-network
consul-config-loader:
image: jhipster/consul-config-loader:v0.4.1
volumes:
- ./central-server-config:/config
environment:
- INIT_SLEEP_SECONDS=5
- CONSUL_URL=consul
- CONSUL_PORT=8500
# Uncomment to load configuration into Consul from a Git repository
# as configured in central-server-config/git2consul.json
# Also set SPRING_CLOUD_CONSUL_CONFIG_FORMAT=files on your apps
# - CONFIG_MODE=git
networks:
- calvary-erp-network
volumes:
pgdata:
driver: local
pgconf:
driver: local
pglog:
driver: local
pgadmindata:
driver: local
search-index-directory:
driver: local
central-server-config:
driver: local
logs:
driver: local
reports-directory:
driver: local
generated-reports:
driver: local
business-documents:
driver: local