-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.15 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
version: '3.7'
# keep command outside anchor because of performance problems
x-default-redis: &default-redis
image: redis:${REDIS_VERSION:-6.2.5-alpine}
volumes:
- ./redis:/data
services:
api:
build:
context: .
dockerfile: docker/dev/Dockerfile
image: dev.example.com/mapotempo/geocoder-api
volumes:
- ${APP_HOME:-.}/poly:/srv/app/poly
ports:
- 8558:8558
environment:
PASSENGER_APP_ENV: test
REDIS_COUNT_HOST: redis-count
REDIS_HOST: redis-cache
redis-cache:
<<: *default-redis
hostname: redis-cache
command: redis-server --save ""
redis-count:
<<: *default-redis
hostname: redis-count
command: redis-server --appendonly yes
volumes:
- ./redis-count:/data
addok:
image: registry.mapotempo.com/mapotempo/addok:${ADDOK_VERSION:-1.1.0-rc1-2}
ports:
- 7878:7878
volumes:
- ./addresses:/addresses
environment:
ADDOK_HOST: "redis-server"
ADDOK_ATTRIBUTION: "BANO"
ADDOK_LICENCE: "ODbL"
redis-server:
<<: *default-redis
hostname: redis-server
command: redis-server --save ""
volumes:
- ./data:/data