forked from mage-ai/rag-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.32 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
services:
magic-platform:
env_file:
- .env.dev
build:
context: .
command: /app/run_app.sh mage start $PROJECT_NAME
ports:
- "6789:6789"
volumes:
# Mount your local codebase to the container.
- .:/$MAGE_CODE_PATH
# Store the data output on local machine to easily debug (optional).
- ~/.mage_data:/$MAGE_CODE_PATH/mage_data
restart: on-failure:5
networks:
- app-network
depends_on:
- magic-database
stdin_open: true # used for interactive debugging
tty: true # used for interactive debugging
magic-database:
image: pgvector/pgvector:0.6.0-pg16
env_file:
- .env.dev
ports:
- "5432:5432"
volumes:
- ~/.postgres/data:/var/lib/postgresql/data
# Custom database initialization scripts (optional).
- ./scripts/database:/docker-entrypoint-initdb.d
restart: always
networks:
- app-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.0
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m # Adjust these values based on available memory
ports:
- "9200:9200"
- "9300:9300"
restart: always
networks:
- app-network
networks:
app-network:
driver: bridge