-
Notifications
You must be signed in to change notification settings - Fork 1
/
edu_docker-compose.yml
110 lines (104 loc) · 2.86 KB
/
edu_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
services:
database:
build:
context: ./database
dockerfile: Dockerfile
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"
ports:
- "45432:5432"
volumes:
- v-istsos4-database-data:/var/lib/postgresql/data
env_file:
- .env
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: ./api
dockerfile: Dockerfile
environment:
HOSTNAME: http://api:5000
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 --reload --host 0.0.0.0 --port 5000 app.main:app
ports:
- 8018:5000
volumes:
- ./api/app:/code/app
working_dir: /code
redis:
image: redis:7.4.0-alpine3.20
restart: always
volumes:
- v-istsos4-redis-data:/data
dummy_data:
build:
context: ./dummy_data
dockerfile: Dockerfile
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}
command: python3 generator.py
volumes:
- ./dummy_data:/dummy_data
working_dir: /dummy_data
depends_on:
database:
condition: service_healthy
docs:
build:
context: ./docs/mkdocs
dockerfile: dockerfile
#restart: always
ports:
- 8019:8000
volumes:
- ./docs/mkdocs:/docs
tutorials:
# image: quay.io/jupyter/scipy-notebook
build:
context: ./docs/tutorials
dockerfile: dockerfile
ports:
- "10000:8888"
command: start-notebook.py --IdentityProvider.token=''
volumes:
- ./istsos4_docs/tutorials:/home/jovyan/work
volumes:
v-istsos4-database-data:
name: v-istsos4-database-data
v-istsos4-redis-data:
name: v-istsos4-redis-data