-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.dev.yml
124 lines (113 loc) · 4.4 KB
/
docker-compose.dev.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
services:
stac-dev:
platform: linux/amd64
image: pc-apis-stac-dev
build:
context: .
dockerfile: pcstac/Dockerfile.dev
environment:
- ENVIRONMENT=development
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST=database
- POSTGRES_HOST_READER=database
- POSTGRES_HOST_WRITER=database
- POSTGRES_PORT=5432
- PCAPIS_DEBUG=TRUE
- TILER_HREF=http://localhost:8080/data/
# Azure Storage
- AZURITE_ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_COLLECTION_CONFIG__ACCOUNT_URL=http://azurite:10002/devstoreaccount1
- PCAPIS_COLLECTION_CONFIG__ACCOUNT_NAME=devstoreaccount1
- PCAPIS_COLLECTION_CONFIG__ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_COLLECTION_CONFIG__TABLE_NAME=collectionconfig
- PCAPIS_CONTAINER_CONFIG__ACCOUNT_URL=http://azurite:10002/devstoreaccount1
- PCAPIS_CONTAINER_CONFIG__ACCOUNT_NAME=devstoreaccount1
- PCAPIS_CONTAINER_CONFIG__ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_CONTAINER_CONFIG__TABLE_NAME=containerconfig
- PCAPIS_IP_EXCEPTION_CONFIG__ACCOUNT_URL=http://azurite:10002/devstoreaccount1
- PCAPIS_IP_EXCEPTION_CONFIG__ACCOUNT_NAME=devstoreaccount1
- PCAPIS_IP_EXCEPTION_CONFIG__ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_IP_EXCEPTION_CONFIG__TABLE_NAME=ipexceptionlist
# Redis
- PCAPIS_REDIS_HOSTNAME=redis
- PCAPIS_REDIS_PASSWORD=devcache
- PCAPIS_REDIS_PORT=6380
- PCAPIS_REDIS_SSL=FALSE
# Rate limit
- PCAPIS_RATE_LIMITS__COLLECTIONS=1000
- PCAPIS_RATE_LIMITS__COLLECTION=100
- PCAPIS_RATE_LIMITS__ITEMS=1000
- PCAPIS_RATE_LIMITS__ITEM=1000
- PCAPIS_RATE_LIMITS__SEARCH=1000
# Backpressure
- PCAPIS_BACK_PRESSURES__COLLECTIONS__REQ_PER_SEC=100
- PCAPIS_BACK_PRESSURES__COLLECTIONS__INC_MS=10
- PCAPIS_BACK_PRESSURES__COLLECTION__REQ_PER_SEC=100
- PCAPIS_BACK_PRESSURES__COLLECTION__INC_MS=10
- PCAPIS_BACK_PRESSURES__ITEMS__REQ_PER_SEC=100
- PCAPIS_BACK_PRESSURES__ITEMS__INC_MS=10
- PCAPIS_BACK_PRESSURES__ITEM__REQ_PER_SEC=100
- PCAPIS_BACK_PRESSURES__ITEM__INC_MS=10
- PCAPIS_BACK_PRESSURES__SEARCH__REQ_PER_SEC=100
- PCAPIS_BACK_PRESSURES__SEARCH__INC_MS=10
volumes:
- .:/opt/src
command: >
/bin/bash
depends_on:
- stac
tiler-dev:
platform: linux/amd64
image: pc-apis-tiler-dev
# For Mac OS M1 user, you'll need to add `platform: linux/amd64`.
# see https://github.com/developmentseed/titiler/discussions/387#discussioncomment-1643110
# platform: linux/amd64
build:
context: .
dockerfile: pctiler/Dockerfile.dev
environment:
- ENVIRONMENT=development
- FF_VRT="yes"
- STAC_API_URL=http://stac:8081
- STAC_API_HREF=http://localhost:8080/stac/
- VECTORTILE_SA_BASE_URL=http://example.com
- PCAPIS_DEBUG=TRUE
# titiler.pgstac
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST=database
- POSTGRES_HOST_READER=database
- POSTGRES_HOST_WRITER=database
- POSTGRES_PORT=5432
- WEB_CONCURRENCY=1
- WORKERS_PER_CORE=1
# Azure Storage
- AZURITE_ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_COLLECTION_CONFIG__ACCOUNT_URL=http://azurite:10002/devstoreaccount1
- PCAPIS_COLLECTION_CONFIG__ACCOUNT_NAME=devstoreaccount1
- PCAPIS_COLLECTION_CONFIG__ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_COLLECTION_CONFIG__TABLE_NAME=collectionconfig
- PCAPIS_CONTAINER_CONFIG__ACCOUNT_URL=http://azurite:10002/devstoreaccount1
- PCAPIS_CONTAINER_CONFIG__ACCOUNT_NAME=devstoreaccount1
- PCAPIS_CONTAINER_CONFIG__ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_CONTAINER_CONFIG__TABLE_NAME=containerconfig
- PCAPIS_IP_EXCEPTION_CONFIG__ACCOUNT_URL=http://azurite:10002/devstoreaccount1
- PCAPIS_IP_EXCEPTION_CONFIG__ACCOUNT_NAME=devstoreaccount1
- PCAPIS_IP_EXCEPTION_CONFIG__ACCOUNT_KEY=${AZURITE_ACCOUNT_KEY}
- PCAPIS_IP_EXCEPTION_CONFIG__TABLE_NAME=ipexceptionlist
# Redis
- PCAPIS_REDIS_HOSTNAME=redis
- PCAPIS_REDIS_PASSWORD=devcache
- PCAPIS_REDIS_PORT=6380
- PCAPIS_REDIS_SSL=FALSE
volumes:
- .:/opt/src
- ~/.azure:/root/.azure
command: >
/bin/bash
depends_on:
- stac
- tiler