forked from mage-ai/mage-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
133 lines (132 loc) · 4.36 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
123
124
125
126
127
128
129
130
131
132
133
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
- DEBUG_FILE_IO=$DEBUG_FILE_IO
- DEBUG_MEMORY=$DEBUG_MEMORY
- DEUS_EX_MACHINA=$DEUS_EX_MACHINA
- DISABLE_API_TERMINAL_OUTPUT=$DISABLE_API_TERMINAL_OUTPUT
- DISABLE_DATABASE_TERMINAL_OUTPUT=$DISABLE_DATABASE_TERMINAL_OUTPUT
- DYNAMIC_BLOCKS_VERSION=$DYNAMIC_BLOCKS_VERSION
- 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
- KERNEL_MANAGER=$KERNEL_MANAGER
- 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=$MEMORY_MANAGER_PANDAS_VERSION
- MEMORY_MANAGER_POLARS_VERSION=$MEMORY_MANAGER_POLARS_VERSION
- MEMORY_MANAGER_VERSION=$MEMORY_MANAGER_VERSION
- 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
- VARIABLE_DATA_OUTPUT_META_CACHE=$VARIABLE_DATA_OUTPUT_META_CACHE
- 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: node:18-alpine
command: sh -c "yarn install && yarn cache clean && npx next dev"
ports:
- 3000:3000
volumes:
- .:/home/src
- node_modules_volume:/home/src/mage_ai/frontend/node_modules
working_dir: /home/src/mage_ai/frontend
services:
server:
<<: *server_settings
app:
<<: *app_settings
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
py:
<<: *server_settings
ports: []
lsp:
build:
context: .
dockerfile: ./lsp.Dockerfile
volumes:
- .:/home/src
environment:
- PORT=8765
ports:
- 8765:8765
networks:
- app-network
magic-database:
image: pgvector/pgvector:0.6.0-pg16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: magic
ports:
- 5432:5432
volumes:
- ~/.postgres/data:/var/lib/postgresql/data
- ./scripts:/docker-entrypoint-initdb.d # Mount init script
restart: always
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
node_modules_volume:
driver: local