forked from mage-ai/mage-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (121 loc) · 4.86 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
112
113
114
115
116
117
118
119
120
121
122
x-server_settings: &server_settings
image: mage/data
build:
context: .
dockerfile: ./dev.Dockerfile
command: "python mage_ai/server/server.py --host ${HOST} --port ${PORT} --project ${PROJECT} --manage-instance ${MANAGE_INSTANCE}"
environment:
- AUTHENTICATION_MODE=$AUTHENTICATION_MODE
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN
- DEBUG=$DEBUG
- DEUS_EX_MACHINA=$DEUS_EX_MACHINA
- DISABLE_API_TERMINAL_OUTPUT=$DISABLE_API_TERMINAL_OUTPUT
- DISABLE_DATABASE_TERMINAL_OUTPUT=$DISABLE_DATABASE_TERMINAL_OUTPUT
- ECS_CLUSTER_NAME=$ECS_CLUSTER_NAME
- ECS_CONTAINER_NAME=$ECS_CONTAINER_NAME
- ECS_TASK_DEFINITION=$ECS_TASK_DEFINITION
- ENABLE_NEW_RELIC=$ENABLE_NEW_RELIC
- ENABLE_PROMETHEUS=$ENABLE_PROMETHEUS
- ENV=dev
- EXPERIMENTS_DB=$EXPERIMENTS_DB
- EXPERIMENTS_TRACKING_URI=$EXPERIMENTS_TRACKING_URI
- GCP_PROJECT_ID=$GCP_PROJECT_ID
- GCP_REGION=$GCP_REGION
- HUGGINGFACE_API=$HUGGINGFACE_API
- HUGGINGFACE_INFERENCE_API_TOKEN=$HUGGINGFACE_INFERENCE_API_TOKEN
- LDAP_ADMIN_USERNAME=$LDAP_ADMIN_USERNAME
- LDAP_AUTHENTICATION_FILTER=$LDAP_AUTHENTICATION_FILTER
- LDAP_AUTHORIZATION_FILTER=$LDAP_AUTHORIZATION_FILTER
- LDAP_BASE_DN=$LDAP_BASE_DN
- LDAP_BIND_DN=$LDAP_BIND_DN
- LDAP_BIND_PASSWORD=$LDAP_BIND_PASSWORD
- LDAP_SERVER=$LDAP_SERVER
- MAGE_BASE_PATH=$MAGE_BASE_PATH
- MAGE_DATABASE_CONNECTION_URL=$DATABASE_CONNECTION_URL
- MAGE_DATA_DIR=$MAGE_DATA_DIR
- MAGE_PRESENTERS_DIRECTORY=$MAGE_PRESENTERS_DIRECTORY
- MAX_NUMBER_OF_FILE_VERSIONS=$MAX_NUMBER_OF_FILE_VERSIONS
- MEMORY_MANAGER_PANDAS_VERSION=1
- MEMORY_MANAGER_POLARS_VERSION=1
- MEMORY_MANAGER_VERSION=1
- NEW_RELIC_CONFIG_PATH=$NEW_RELIC_CONFIG_PATH
- OPENAI_API_KEY=$OPENAI_API_KEY
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT}
- OTEL_EXPORTER_OTLP_HTTP_ENDPOINT=${OTEL_EXPORTER_OTLP_HTTP_ENDPOINT}
- OTEL_PYTHON_TORNADO_EXCLUDED_URLS=$OTEL_PYTHON_TORNADO_EXCLUDED_URLS
- REQUIRE_USER_AUTHENTICATION=$REQUIRE_USER_AUTHENTICATION
- REQUIRE_USER_PERMISSIONS=$REQUIRE_USER_PERMISSIONS
- SCHEDULER_TRIGGER_INTERVAL=$SCHEDULER_TRIGGER_INTERVAL
- SERVER_LOGGING_TEMPLATE=${SERVER_LOGGING_TEMPLATE:-%(levelname)s:%(name)s:%(message)s}
- SERVER_VERBOSITY=$SERVER_VERBOSITY
- SMTP_EMAIL=$SMTP_EMAIL
- SMTP_PASSWORD=$SMTP_PASSWORD
- path_to_keyfile=$GCP_PATH_TO_CREDENTIALS
ports:
- 6789:6789
volumes:
- .:/home/src
- ~/.aws:/root/.aws
- ~/.mage_data:/root/.mage_data
restart: on-failure:5
stdin_open: true # used for interactive debugging
tty: true # used for interactive debugging
x-app_settings: &app_settings
image: mage/data
build:
context: .
dockerfile: ./dev.Dockerfile
command: ./scripts/install_and_run.sh
ports:
- 3000:3000
volumes:
- ./mage_ai/frontend/.env.local:/home/src/mage_ai/frontend/.env.local
- ./mage_ai/frontend/.babelrc:/home/src/mage_ai/frontend/.babelrc
- ./mage_ai/frontend/.eslintrc.js:/home/src/mage_ai/frontend/.eslintrc.js
- ./mage_ai/frontend/api:/home/src/mage_ai/frontend/api
- ./mage_ai/frontend/components:/home/src/mage_ai/frontend/components
- ./mage_ai/frontend/context:/home/src/mage_ai/frontend/context
- ./mage_ai/frontend/hocs:/home/src/mage_ai/frontend/hocs
- ./mage_ai/frontend/interfaces:/home/src/mage_ai/frontend/interfaces
- ./mage_ai/frontend/next-env.d.ts:/home/src/mage_ai/frontend/next-env.d.ts
- ./mage_ai/frontend/next.config.js:/home/src/mage_ai/frontend/next.config.js
- ./mage_ai/frontend/oracle:/home/src/mage_ai/frontend/oracle
- ./mage_ai/frontend/package.json:/home/src/mage_ai/frontend/package.json
- ./mage_ai/frontend/pages:/home/src/mage_ai/frontend/pages
- ./mage_ai/frontend/public:/home/src/mage_ai/frontend/public
- ./mage_ai/frontend/scripts:/home/src/mage_ai/frontend/scripts
- ./mage_ai/frontend/storage:/home/src/mage_ai/frontend/storage
- ./mage_ai/frontend/stories:/home/src/mage_ai/frontend/stories
- ./mage_ai/frontend/styles:/home/src/mage_ai/frontend/styles
- ./mage_ai/frontend/tsconfig.json:/home/src/mage_ai/frontend/tsconfig.json
- ./mage_ai/frontend/utils:/home/src/mage_ai/frontend/utils
- ./mage_ai/frontend/yarn.lock:/home/src/mage_ai/frontend/yarn.lock
working_dir: /home/src/mage_ai/frontend
services:
server:
<<: *server_settings
app:
<<: *app_settings
depends_on:
- server
server_spark:
<<: *server_settings
image: mage/data_spark
build:
context: .
dockerfile: ./dev.spark.Dockerfile
app_spark:
<<: *app_settings
image: mage/data_spark
build:
context: .
dockerfile: ./dev.spark.Dockerfile
depends_on:
- server_spark
test-frontend:
<<: *app_settings
py:
<<: *server_settings
ports: []