-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
111 lines (99 loc) · 3.14 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
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
version: "3.3"
services:
prefect:
image: prefecthq/prefect:2.14-python3.11
command: prefect server start
environment:
- PREFECT_SERVER_API_HOST=0.0.0.0
- PREFECT_API_DATABASE_CONNECTION_URL=postgresql+asyncpg://${PREFECT_DB_USER}:${PREFECT_DB_PW}@prefect_db:5432/${PREFECT_DB_NAME} # Needed if using postgres and not sqlite
# - PREFECT_UI_API_URL=https://localhost/api. needed if nginx is handling ssl termination
- PREFECT_LOGGING_LEVEL=DEBUG
ports:
- 4200:4200
depends_on:
- prefect_db
networks:
mle_net:
prefect_db:
image: postgres:14.5-alpine
environment:
- POSTGRES_USER=${PREFECT_DB_USER}
- POSTGRES_PASSWORD=${PREFECT_DB_PW}
- POSTGRES_DB=${PREFECT_DB_NAME}
volumes:
- ./data/prefect_db:/var/lib/postgresql/data:rw
restart: unless-stopped
networks:
mle_net:
tiled:
# see the file ./tiled/deploy/config.yml for detailed configuration of tiled
image: ghcr.io/bluesky/tiled:v0.1.0a114
ports:
- "8000:8000"
environment:
- TILED_DB_USER=${TILED_DB_USER}
- TILED_DB_PW=${TILED_DB_PW}
- TILED_DB_NAME=${TILED_DB_NAME}
- TILED_DB_SERVER=${TILED_DB_SERVER}
- TILED_SINGLE_USER_API_KEY=${TILED_SINGLE_USER_API_KEY}
volumes:
- ./tiled/deploy:/deploy
- ./data/tiled_storage:/tiled_storage
depends_on:
- tiled_db
networks:
mle_net:
tiled_db:
image: postgres:14.5-alpine
environment:
- POSTGRES_USER=${TILED_DB_USER}
- POSTGRES_PASSWORD=${TILED_DB_PW}
- POSTGRES_DB=${TILED_DB_NAME}
volumes:
- ./data/tiled_db:/var/lib/postgresql/data:rw
- ./data/tiled_storage:/tiled_storage
restart: unless-stopped
networks:
mle_net:
tiled_ingest:
build:
context: ./mlex_tiled_ingest
environment:
- TILED_DB_USER=${TILED_DB_USER}
- TILED_DB_PW=${TILED_DB_PW}
- TILED_DB_NAME=${TILED_DB_NAME}
- TILED_DB_SERVER=${TILED_DB_SERVER}
- TILED_INGEST_TILED_CONFIG_PATH=${TILED_INGEST_TILED_CONFIG_PATH}
- TILED_INGEST_RMQ_HOST=${TILED_INGEST_RMQ_HOST}
- TILED_INGEST_RMQ_USER=${TILED_INGEST_RMQ_USER}
- TILED_INGEST_RMQ_PW=${TILED_INGEST_RMQ_PW}
volumes:
- ./mlex_tiled_ingest:/app
- ./tiled/deploy:/deploy
- ./data/tiled_storage:/tiled_storage
mlex_segmentation:
image: ghcr.io/mlexchange/mlex_highres_segmentation:main
environment:
- DATA_TILED_URI=http://tiled:8000/api/v1/metadata/recons
- DATA_TILED_API_KEY=${TILED_API_KEY}
- MASK_TILED_URI=http://tiled:8000/
- MASK_TILED_API_KEY=${TILED_API_KEY}
- SEG_TILED_URI=http://tiled:8000/
- SEG_TILED_API_KEY=${TILED_API_KEY}
- USER_NAME=${MLEX_SEGM_USER}
- USER_PASSWORD=${MLEX_SEGM_PW}
- RESULTS_DIR=${RESULTS_DIR}
- PREFECT_API_URL=http://prefect:4200/api
- FLOW_NAME=${FLOW_NAME}
- TIMEZONE=${TIMEZONE}
ports:
- 8075:8075
# depends_on:
# - tiled
# Intermediate solution restarting frontend on failure due to connection issues
restart: always
networks:
mle_net:
networks:
mle_net:
driver: bridge