-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlvis-compose.yml
160 lines (158 loc) · 4.41 KB
/
lvis-compose.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: '3.8'
services:
config-server:
image: thaihv/config-server:0.0.1
container_name: config-server
restart: always
environment:
- spring.cloud.config.server.git.uri=https://github.com/thaihv/config-repo.git
- spring.cloud.config.server.git.clone-on-start=true
expose:
- "8888"
ports:
- "8888:8888"
healthcheck:
test: "exit 0"
networks:
- dev-network
eureka0-service:
image: thaihv/eureka0-service:0.0.1
container_name: eureka0-service
restart: always
environment:
- spring.cloud.config.uri=http://config-server:8888
- "SPRING_PROFILES_ACTIVE=prod"
expose:
- "8761"
ports:
- "8761:8761"
healthcheck:
test: "exit 0"
networks:
- dev-network
depends_on:
- config-server
api0-gateway:
image: thaihv/api0-gateway:0.0.1
container_name: api0-gateway
restart: always
environment:
- spring.cloud.config.uri=http://config-server:8888
- "SPRING_PROFILES_ACTIVE=prod"
expose:
- "8090"
ports:
- "8090:8090"
healthcheck:
test: "exit 0"
networks:
- dev-network
depends_on:
- config-server
- eureka0-service
postgis-db:
image: kartoza/postgis:16-3.4
container_name: postgis-db
volumes:
- postgis-data:/var/lib/postgis-db
environment:
# If you need to create multiple database you can add coma separated databases eg gis,data
- POSTGRES_DB=geospatial
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
- ALLOW_IP_RANGE=0.0.0.0/0
# Add extensions you need to be enabled by default in the DB. Default are the five specified below
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,postgis_raster,pgrouting
ports:
- 25432:5432
restart: on-failure
healthcheck:
interval: 1m30s
timeout: 10s
retries: 3
start_period: 1m
networks:
- dev-network
geoserver:
image: kartoza/geoserver:2.23.6
container_name: geoserver
volumes:
- geoserver-data:/opt/geoserver/data_dir
ports:
- 8680:8080
restart: on-failure
environment:
- GEOSERVER_DATA_DIR=opt/geoserver/data_dir
- GEOWEBCACHE_CACHE_DIR=/opt/geoserver/gwc
- GEOSERVER_ADMIN_PASSWORD=Admin@123
- GEOSERVER_ADMIN_USER=admin
- INITIAL_MEMORY=1G
- MAXIMUM_MEMORY=4G
- SAMPLE_DATA=true
- GEOSERVER_CONTEXT_ROOT=geoserver
- ROOT_WEBAPP_REDIRECT=true
- CONSOLE_HANDLER_LEVEL=WARNING
- DB_BACKEND=POSTGRES
- HOST=postgis-db
- POSTGRES_PORT=5432
- POSTGRES_DB=geospatial
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
- POSTGRES_SCHEMA=gwc
- DISK_QUOTA_SIZE=5
healthcheck:
interval: 1m30s
timeout: 10s
retries: 3
start_period: 1m
networks:
- dev-network
egis0-service:
image: thaihv/egis0-service:0.0.1
container_name: egis0-service
restart: on-failure
environment:
- spring.config.import=configserver:http://config-server:8888
- "SPRING_PROFILES_ACTIVE=prod"
expose:
- "8091"
ports:
- "8091"
healthcheck:
interval: 1m30s
timeout: 10s
retries: 3
start_period: 1m
networks:
- dev-network
depends_on:
- config-server
- eureka0-service
lvis-ui0:
image: thaihv/lvis-ui0:0.0.1
container_name: lvis-ui0
restart: always
environment:
- VITE_PROTOTYPE_API_BASE_URL=http://103.82.21.14:8090/prot0-api
- VITE_EGIS_API_BASE_URL=http://103.82.21.14:8090/egis0-api
- VITE_GEOMAP_WMS_URL_BK=http://103.82.21.14:8680/geoserver/lvis/wms
- VITE_GEOMAP_WMS_URL=http://103.82.21.14:8680/geoserver/lvis/wms
- VITE_GEOMAP_GWC_URL_BK=http://103.82.21.14:8680/geoserver/gwc/service/wms
- VITE_REACT_APP_KEYCLOAK_URL=http://www.tamky.xyz:8080/
- VITE_REACT_APP_REALM_NAME=mydev
- VITE_REACT_APP_CLIENT_ID=lvis-ui0
ports:
- 5173:5173
volumes:
- ./lvis-ui0:/data/lvis-ui0
healthcheck:
test: "exit 0"
networks:
- dev-network
volumes:
geoserver-data:
postgis-data:
driver: local
networks:
dev-network:
driver: bridge