This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
148 lines (138 loc) · 3.7 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3'
networks:
frontend:
driver: ${NETWORKS_DRIVER}
backend:
driver: ${NETWORKS_DRIVER}
services:
### Workspace Utilities ##################################
workspace:
build: ./workspace
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
- WORKSPACE_NCPU=${WORKSPACE_NCPU}
- WORKSPACE_MEMORY=${WORKSPACE_MEMORY}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${DATA_PATH_HOST}/pbf:${APP_CODE_PATH_CONTAINER}/pbf
extra_hosts:
- "dockerhost:${DOCKER_HOST_IP}"
ports:
- "${WORKSPACE_SSH_PORT}:22"
tty: true
networks:
- frontend
- backend
### Katotherian ##################################
kartotherian:
build: ./kartotherian
ports:
- "6533:6533"
- "16534:16534"
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- PGPORT=5432
- PGHOST=postgres-postgis
- CASSANDRA_HOST=cassandra
- CASSANDRA_PORT=9042
depends_on:
- workspace
- postgres-postgis
- cassandra
- redis
- tegola
volumes:
- ${APP_CODE_PATH_HOST}/kartotherian:/home/kartotherian
- ${APP_CODE_PATH_HOST}/dependencies:/srv/dependencies
- ${APP_CODE_PATH_HOST}/kartosm/expiretiles:/srv/expiretiles
tty: true
networks:
- frontend
- backend
### PostgreSQL PostGis ##################################
postgres-postgis:
build: ./postgres-postgis
volumes:
# - ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
- ${DATA_PATH_HOST}/imposm:/var/lib/postgresql/data
ports:
- "${PGPORT}:5432"
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
depends_on:
- workspace
networks:
- backend
### Cassandra ##################################
cassandra:
build: ./cassandra
volumes:
- ${DATA_PATH_HOST}/cassandra:/var/lib/cassandra
ports:
- "${CASSANDRA_PORT}:9042"
networks:
- backend
### Redis ##################################
redis:
build: ./redis
volumes:
- ${DATA_PATH_HOST}/redis:/data
ports:
- "${REDIS_PORT}:6379"
networks:
- backend
### Mapbox Studio Classic ##################################
mapbox-studio-classic:
build: ./mapbox-studio-classic
volumes:
- ${APP_CODE_PATH_HOST}:/root/source
- ${DATA_PATH_HOST}/.mapbox-studio:/root/.mapbox-studio
ports:
- "3000:3000"
depends_on:
- workspace
- postgres-postgis
environment:
- DOCKER_HOST_IP=${DOCKER_HOST_IP}
networks:
- frontend
- backend
### Graphite statsd ##################################
statsd:
image: graphiteapp/graphite-statsd
# volumes:
# - ${DATA_PATH_HOST}/graphite/configs:/opt/graphite/conf
# - ${DATA_PATH_HOST}/graphite/data:/opt/graphite/storage
# - ${DATA_PATH_HOST}/statsd:/opt/statsd
ports:
- "8000:80"
- "2003-2004:2003-2004"
- "2023-2024:2023-2024"
- "8125:8125"
- "8126:8126"
restart: always
networks:
- backend
### Tegola ##################################
tegola:
build: https://github.com/go-spatial/tegola.git#v0.13.x
volumes:
- ./tegola/tegola.toml:/etc/tegola.toml
ports:
- "${TEGOLA_PORT}:8080"
networks:
- backend
command: serve --config /etc/tegola.toml
### TODO: Maputnik ##################################