-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.5 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
version: '3.7'
services:
app:
container_name: highres_seg_demo
build: .
command: 'gunicorn -b 0.0.0.0:8075 --reload app:server'
environment:
DATA_TILED_URI: '${DATA_TILED_URI}'
DATA_TILED_API_KEY: '${DATA_TILED_API_KEY}'
MASK_TILED_URI: '${MASK_TILED_URI}'
MASK_TILED_API_KEY: '${MASK_TILED_API_KEY}'
SEG_TILED_URI: '${SEG_TILED_URI}'
SEG_TILED_API_KEY: '${SEG_TILED_API_KEY}'
USER_NAME: '${USER_NAME}'
USER_PASSWORD: '${USER_PASSWORD}'
# The application itself finds the local results directory as mounted below
RESULTS_DIR: "/app/work/results"
PREFECT_API_URL: '${PREFECT_API_URL}'
FLOW_NAME: '${FLOW_NAME}'
TIMEZONE: "${TIMEZONE}"
FLOW_TYPE: "${FLOW_TYPE}"
IMAGE_NAME: "${IMAGE_NAME}"
IMAGE_TAG: "${IMAGE_TAG}"
CONTAINER_NETWORK: "${CONTAINER_NETWORK}"
# When scheduling flows through docker/podman, the container needs to
# mount the local results directory
MOUNT_RESULTS_DIR: "${RESULTS_DIR}"
TRAIN_SCRIPT_PATH: "${TRAIN_SCRIPT_PATH}"
SEGMENT_SCRIPT_PATH: "${SEGMENT_SCRIPT_PATH}"
volumes:
- ./app.py:/app/app.py
- ./constants.py:/app/constants.py
- ./callbacks:/app/callbacks
- ./components:/app/components
- ./utils:/app/utils
- ${RESULTS_DIR}:/app/work/results
ports:
- '127.0.0.1:8075:8075'
networks:
mlex_tomo_framework_mle_net:
networks:
mlex_tomo_framework_mle_net:
driver: bridge
external: true