-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (60 loc) · 1.97 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
version: "3.7"
services:
database:
image: ghcr.io/istsos/istsos4/database:1.0
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
DATADIR: /var/lib/postgresql/data
command: >
postgres -c custom.versioning="${VERSIONING}" -c custom.duplicates="${DUPLICATES}" -c custom.epsg="${EPSG}" -c log_statement="all" -c log_destination="stderr" -c log_duration="on"
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
timeout: 5s
retries: 5
api:
image: ghcr.io/istsos/istsos4/api:1.0
environment:
HOSTNAME: ${HOSTNAME}
SUBPATH: ${SUBPATH}
VERSION: ${VERSION}
DEBUG: ${DEBUG}
VERSIONING: ${VERSIONING}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PG_MAX_OVERFLOW: ${PG_MAX_OVERFLOW}
PG_POOL_SIZE: ${PG_POOL_SIZE}
PG_POOL_TIMEOUT: ${PG_POOL_TIMEOUT}
COUNT_MODE: ${COUNT_MODE}
COUNT_ESTIMATE_THRESHOLD: ${COUNT_ESTIMATE_THRESHOLD}
TOP_VALUE: ${TOP_VALUE}
PARTITION_CHUNK: ${PARTITION_CHUNK}
REDIS: ${REDIS}
EPSG: ${EPSG}
command: uvicorn --timeout-keep-alive 75 --workers 2 --host 0.0.0.0 --port 5000 app.main:app
ports:
- 8018:5000
working_dir: /code
redis:
image: redis:7.4.0-alpine3.20
restart: always
# dummy_data:
# image: ghcr.io/istsos/istsos4/dummy_data:1.0
# command: python3 generator.py
# working_dir: /dummy_data
# environment:
# POSTGRES_DB: ${POSTGRES_DB}
# POSTGRES_USER: ${POSTGRES_USER}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# DUMMY_DATA: ${DUMMY_DATA}
# CLEAR_DATA: ${CLEAR_DATA}
# N_THINGS: ${N_THINGS}
# N_OBSERVED_PROPERTIES: ${N_OBSERVED_PROPERTIES}
# INTERVAL: ${INTERVAL}
# FREQUENCY: ${FREQUENCY}
# START_DATETIME: ${START_DATETIME}
# CHUNK_INTERVAL: ${CHUNK_INTERVAL}
# EPSG: ${EPSG}