-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (74 loc) · 2.14 KB
/
docker-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
version: "3"
services:
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
links:
- api
- client
restart: always
environment:
DOMAINS: 'i202-api.arogyakoirala.com -> http://api:8080, i202-client.arogyakoirala.com -> http://client:3000'
STAGE: 'production' # Don't use production until staging works
# FORCE_RENEW: 'true'
volumes:
- https-portal-data:/var/lib/https-portal
elastic:
image: "elasticsearch:7.14.2"
env_file:
- ./.env_elastic
environment:
- "logger.level=WARN"
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
- 9300:9300
# volumes:
# - ./data-es:/usr/share/elasticsearch/data:rw
nominatim:
image: "mediagis/nominatim:3.7"
env_file:
- ./.env_nominatim
# ports:
# - "8081:8080"
# - "5431:5432"
volumes:
- ./data-osm/berkeley.osm.pbf:/nominatim/data/berkeley.osm.pbf
# - ./status:/var/lib/postgresql/12/main
api:
build:
context: ./api
dockerfile: Dockerfile
environment:
- "ES_HOST=elastic"
- "ES_PORT=9200"
volumes:
- ./jars/api-0.0.1-SNAPSHOT.jar:/srv/api/app.jar
- ./status:/srv/api/status
# ports:
# - "8080:8080"
pg2es:
build:
context: ./pg2es
dockerfile: Dockerfile
environment:
- "ES_HOST=elastic"
- "ES_PORT=9200"
- "PG_HOST=nominatim"
- "PG_PORT=5432"
volumes:
- ./jars/pg2es-0.0.1-SNAPSHOT.jar:/srv/api/app.jar
- ./pg2es/categories.csv:/srv/api/categories.csv
- ./status:/var/tmp
client:
container_name: client
build:
context: ./client
dockerfile: Dockerfile
# ports:
# - "8081:3000"
volumes:
https-portal-data: