-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
80 lines (64 loc) · 2 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
version: "3.8"
# =============================================================================
# docker-compose file for creating the GeodataFlow services stack in Docker.
#
# @Usage:
# docker compose up
# docker compose down --rmi all -v --remove-orphans
#
# @Env:
# PACKAGE_WITH_GEODATAFLOW_PIPELINE_CONTEXT="geodataflow.spatial"
#
# Choose one:
# + geodataflow.spatial GeodataFlow backend with GDAL/OGR (OSGeo).
# + geodataflow.dataframes GeodataFlow backend with Geopandas (GeoDataFrame).
# + ...
#
# =============================================================================
services:
# GeodataFlow WebAPI.
api:
container_name: geodataflow-api
image: geodataflow/api:1.0.0
build:
context: .
dockerfile: ./Dockerfile.api
environment:
# Folder where GeodataFlow saves outputs.
- GEODATAFLOW_OUTPUT_FOLDER_PREFIX=/var/lib/geodataflow/data
# CORS Origins.
- GEODATAFLOW_API_ORIGINS=http://localhost:9640
# Connection string of backend Database.
- GEODATAFLOW_DATABASE_URL=sqlite+aiosqlite:////var/lib/geodataflow/data/geodataflow.db
# Package with active PipelineContext.
- PACKAGE_WITH_GEODATAFLOW_PIPELINE_CONTEXT=geodataflow.spatial
volumes:
- data-volume:/var/lib/geodataflow/data
ports:
- "9630:9630"
restart: always
network_mode: "host"
# GeodataFlow Workbench UI.
ui:
container_name: geodataflow-ui
depends_on:
- api
image: geodataflow/workbench:1.0.0
build:
context: .
dockerfile: ./Dockerfile.ui
environment:
# Nginx location of outputs.
- GEODATAFLOW_WORKBENCH_OUTPUT_PATH_PREFIX=/outputs
# Folder where GeodataFlow saves outputs.
- GEODATAFLOW_OUTPUT_FOLDER_PREFIX=/var/lib/geodataflow/data
# GeodataFlow WebAPI.
- GEODATAFLOW_API_URL=http://localhost:9630/api
ports:
- "9640:9640"
volumes:
- data-volume:/var/lib/geodataflow/data
restart: always
network_mode: "host"
volumes:
data-volume: