-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.8'
services:
# API App
chat-api:
image: node:20.13.1
command: >
bash -c "
cd app &&
npm install &&
chmod +x migration-helper.sh &&
sleep ${MIGRATION_DELAY_SECONDS} &&
./migration-helper.sh &&
npm run debug
"
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_MAIN_DB}
env_file:
.env
ports:
- "${API_PORT}:3000"
volumes:
- ./src:/app/src
- ./:/app
depends_on:
- chat-db
- chat-vector-db
- chat-cache
networks:
- muimi_container_network
chat-vector-db:
image: qdrant/qdrant:v1.9.4
environment:
QDRANT__SERVICE__API_KEY: ${QDRANT_API_KEY}
volumes:
- "./qdrant_storage:/qdrant/storage:z"
networks:
- muimi_container_network
# database
chat-db:
image: postgres:14.12
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_MAIN_DB}
ports:
- "${POSTGRESQL_PORT}:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data:z
networks:
- muimi_container_network
chat-cache:
image: redis:7.2.4
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
# Runs on 6379 Docker
volumes:
- ./redisdata:/data:z
networks:
- muimi_container_network
networks:
muimi_container_network:
external: true