-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
36 lines (36 loc) · 1.23 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
version: "3.9"
services:
mbtileserver:
environment:
# these variables are used in the entrypoint.sh script
- TILESET_DIR=/tilesets
- TMP_DIR=/tmp
- GITHUB_TOKEN=${GITHUB_TOKEN}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- AWS_BUCKET=${AWS_BUCKET}
- TILESET_NAME=${TILESET_NAME}
# The values below need to be changed in production
# - POSTGRES_HOST=postgres
# - POSTGRES_DB=postgres
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# or you use an .env file for this
# env_file:
# - .env
build:
context: .
dockerfile: Dockerfile.server
args:
- BASE_IMAGE=qtrees-vectortiles_base:test
container_name: qtrees-vectortiles
# in production this should have the following command
command: --dir /tilesets --enable-fs-watch
restart: always
ports:
- 26080:8000
volumes:
- tilesets:/tilesets
volumes:
tilesets: