-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
104 lines (97 loc) · 2.38 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
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
version: '3'
networks:
default:
driver: bridge
services:
nginx:
image: nginx:1.26.1-alpine3.19-slim
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
ports:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
logging:
driver: "local"
options:
max-size: "200m"
api:
image: pelias/api:v5.53.0
container_name: pelias_api
user: "${DOCKER_USER}"
restart: always
environment: [ "PORT=4000" ]
ports: [ "4000:4000" ]
volumes:
- "./pelias.json:/code/pelias.json"
logging:
driver: "local"
options:
max-size: "200m"
schema:
image: pelias/schema:v6.4.0
container_name: pelias_schema
user: "${DOCKER_USER}"
volumes:
- "./pelias.json:/code/pelias.json"
libpostal:
image: pelias/libpostal-service:latest
container_name: pelias_libpostal
user: "${DOCKER_USER}"
restart: always
ports: [ "4400:4400" ]
logging:
driver: "local"
options:
max-size: "200m"
csv-importer:
image: pelias/csv-importer:v2.13.0
container_name: pelias_csv_importer
user: "${DOCKER_USER}"
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
whosonfirst:
image: pelias/whosonfirst:v5.5.1
container_name: pelias_whosonfirst
user: "${DOCKER_USER}"
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
pip:
image: pelias/pip-service:v2.2.0
container_name: pelias_pip-service
user: "${DOCKER_USER}"
restart: always
environment: ["PORT=4200"]
ports: ["4200:4200"]
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
logging:
driver: "local"
options:
max-size: "200m"
elasticsearch:
image: pelias/elasticsearch:7.16.1
container_name: pelias_elasticsearch
user: "${DOCKER_USER}"
restart: always
ports: [ "9200:9200", "9300:9300" ]
environment:
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
volumes:
- "${DATA_DIR}/elasticsearch:/usr/share/elasticsearch/data"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add: [ "IPC_LOCK" ]
logging:
driver: "local"
options:
max-size: "200m"