-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.6 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
version: '3.3'
services:
# ----- reverse-proxy --------------------------------------------------------
traefik:
image: "traefik:2.0"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "8080:80"
- "9080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
# ----- autocomplete addr ----------------------------------------------------
autocomplete-addr-postgis:
build: ./postgis
volumes:
- autocomplete-addr-postgis:/var/lib/postgresql/data
#ports:
#- "5432:5432"
autocomplete-addr-elastic:
image: elasticsearch:6.4.3
environment:
- discovery.type=single-node
volumes:
- autocomplete-addr-elastic:/usr/share/elasticsearch/data
#ports:
#- "9200:9200"
autocomplete-addr-importer:
build: ./importer
depends_on:
- autocomplete-addr-postgis
- autocomplete-addr-elastic
volumes:
- autocomplete-addr-importer:/app/tmp
autocomplete-addr-api:
build: ./api
depends_on:
- autocomplete-addr-importer
- autocomplete-addr-postgis
- autocomplete-addr-elastic
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.http.routers.autocomplete-addr-api.entrypoints=web"
- "traefik.http.routers.autocomplete-addr-api.rule=PathPrefix(`/autocomplete/address`)"
#ports:
#- "8084:80"
volumes:
autocomplete-addr-postgis:
autocomplete-addr-elastic:
autocomplete-addr-importer: