-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (97 loc) · 1.95 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
version: "3.9"
services:
database:
container_name: database-server-dab-p1-b7c7d0d1-d2ff-4ef4-9553-e95ea3225629
image: postgres:15
restart: 'no'
env_file:
- .env.development
deploy:
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '0.25'
memory: 64M
redis:
image: redis:latest
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
restart: 'no'
expose:
- 6379
flyway:
image: flyway/flyway:9.11.0-alpine
depends_on:
- database
volumes:
- ./flyway/sql/:/flyway/sql
command: -connectRetries=60 -baselineOnMigrate=true migrate
env_file: .env.development
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: backend
restart: 'no'
volumes:
- ./backend/:/app
- ./app-cache/:/app-cache
expose:
- 8000
depends_on:
- database
- redis
- flyway
env_file:
- .env.development
deploy:
replicas: 2
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
image: frontend
volumes:
- ./frontend/:/app
- vite_node_modules:/app/node_modules
restart: 'no'
expose:
- 5173
depends_on:
- backend
env_file:
- .env.development
llm:
build:
context: ./llm
dockerfile: Dockerfile
image: llm
restart: 'no'
expose:
- 7000
volumes:
- ./llm/:/app
- ./app-cache/:/app-cache
deploy:
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '0.25'
memory: 64M
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- frontend
- llm
ports:
- 7800:7800
volumes:
vite_node_modules: