-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
194 lines (185 loc) · 4.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
194 lines (185 loc) · 4.75 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
version: "3"
volumes:
db-backups:
geoserver_data:
geodb-data:
users_api_data:
geofiles_data:
users_layers_data:
services:
fluentd:
image: nessgis/logs-service
links:
- "elasticsearch"
ports:
- "24224:24224"
- "24224:24224/udp"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
environment:
- "discovery.type=single-node"
expose:
- "9200"
ports:
- "9200:9200"
kibana:
image: kibana:7.10.1
links:
- "elasticsearch"
ports:
- "5601:5601"
geoserver:
image: kartoza/geoserver
volumes:
- geoserver_data:/opt/geoserver/data_dir
ports:
- "8080:8080"
restart: on-failure
environment:
- POSTGRES_DB=gis,gwc
- POSTGRES_USER=postgres
- POSTGRES_PASS=manti2468
- ALLOW_IP_RANGE=0.0.0.0/0
depends_on:
- db
healthcheck:
test: curl --fail -s http://localhost:8080/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
db:
image: kartoza/postgis
volumes:
- ./resources/sql/init.sql:/docker-entrypoint-initdb.d/init.sql
- geodb-data:/var/lib/postgresql
ports:
- "5431:5432"
environment:
- POSTGRES_DB=gis,gwc
- POSTGRES_USER=postgres
- POSTGRES_PASS=manti2468
- ALLOW_IP_RANGE=0.0.0.0/0
restart: on-failure
mdapi:
image: nessgis/gis_api
ports:
- "5001:5001"
mock_config_server:
container_name: mock_config_server
volumes:
- ./gis_mock_server/app/:/usr/src/app/
build: ./gis_mock_server
ports:
- "8020:80"
users_api:
depends_on:
- fluentd
container_name: users-api
image: nessgis/users-api
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000
ports:
- 8030:8000
environment:
- DATABASE_URL=postgresql://postgres:secret@users_api_db/gis_users
- API_KEY=iwhdiodhoiwehwioh
- API_KEY_NAME=apiKey
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: users_api
users_api_db:
image: postgres:12.1-alpine
volumes:
- users_api_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=gis_users
ports:
- 6432:5432
auth_api:
depends_on:
- fluentd
image: nessgis/auth-api
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000
environment:
- CREDENTIALS_URL=http://users_api:8000/users/credentials
- CREDENTIALS_API_KEY=iwhdiodhoiwehwioh
- SECRET_JWT_KEY=71e44ea7cc314cf222fcee8403743c5b4056ebc1c9d82b0c95c0c5fc17de89c1
- TOKEN_EXPIRATION_MINUTES=30
- ACCESS_TOKEN_KEY=token
ports:
- 8040:8000
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: auth_api
geofiles_api:
depends_on:
- fluentd
container_name: geofiles_api
image: nessgis/geofiles-api
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000
volumes:
- ./geofiles-api/src:/usr/src/app/
environment:
- DATABASE_URL=postgresql://postgres:secret@geofiles_db/uploads
- CREDENTIALS_URL=http://auth_api:8000/auth/credentials
- ACCESS_TOKEN_KEY=token
- REQUEST_ID_KEY=X-Request-ID
- REQUEST_TIME_KEY=X-Process-Time
- FILE_EOL=10
ports:
- 8050:8000
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: geofiles_api
geofiles_db:
image: postgres:12.1-alpine
volumes:
- geofiles_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=uploads
ports:
- 6438:5432
gis-front:
image: nessgis/gis-front
ports:
- 3002:3000
users_layers_api:
depends_on:
- fluentd
container_name: users_layers_api
image: nessgis/users-layers-api
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000
volumes:
- ./users-layers-api/src:/usr/src/app/
environment:
- DATABASE_URL=postgresql://postgres:secret@users_layers_db/custom_layers
- CREDENTIALS_URL=http://auth_api:8000/auth/credentials
- ACCESS_TOKEN_KEY=token
- REQUEST_ID_KEY=X-Request-ID
- REQUEST_TIME_KEY=X-Process-Time
- FILE_EOL=10
ports:
- 8060:8000
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
users_layers_db:
image: postgres:12.1-alpine
volumes:
- users_layers_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=uploads
ports:
- 6439:5432