forked from camptocamp/tilecloud-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
77 lines (69 loc) · 1.59 KB
/
docker-compose.yaml
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
version: '2.2'
services:
db:
image: camptocamp/postgres:9.6
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tests
volumes:
- ./docker/test-db:/docker-entrypoint-initdb.d:ro
mapserver:
image: camptocamp/mapserver:7.4
environment:
MS_DEBUGLEVEL: '5'
MAPSERVER_CATCH_SEGV: '1'
volumes:
- ./docker/mapfile-docker:/etc/mapserver:ro
links:
- db:db
user: www-data
mapcache:
image: camptocamp/mapcache:1.6
volumes:
- ./docker/mapcache-docker:/etc/mapcache:ro
links:
- mapserver:mapserver
- memcached:memcached
user: www-data
memcached:
image: memcached:1.5
user: www-data
command:
- memcached
- --memory-limit=512
redis_master:
image: redis:5
redis_slave:
image: redis:5
command: redis-server --slaveof redis_master 6379
depends_on:
- redis_master
redis_sentinel:
image: camptocamp/c2cwsgiutils-redis-sentinel:5
environment:
- MASTER_NAME=mymaster
- QUORUM=1
- MASTER=redis_master
depends_on:
- redis_master
test:
image: camptocamp/tilecloud-chain:tests
working_dir: /app
environment:
CI: 'TRUE'
PGPASSWORD: postgres
TILE_NB_THREAD: 2
METATILE_NB_THREAD: 2
SERVER_NB_THREAD: 2
command:
- sleep
- infinity
links:
- db
- mapcache
- mapserver
- redis_sentinel
volumes:
- ./tilecloud_chain:/app/tilecloud_chain
# - ../tilecloud/tilecloud:/usr/local/lib/python3.7/dist-packages/tilecloud