-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.45 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
version: '3.8'
services:
llm-dsl-builder:
container_name: llm-dsl-builder
build:
context: ./src # Replace this with the path to your Vue + Vite app
dockerfile: Dockerfile
volumes:
- ".:/app" # Mount the entire project directory to /app in the container
# ports:
# - "5000:5000" # Map the Express Node server port
# - "5173:5173" # Map the Vite client port
environment:
- SERVER_PORT=5000 ## This is the internal port of the Express Node server
- CLIENT_URL=http://localhost:5173
- VITE_SERVER_URL=http://localhost:5555 ## This is the URL of the Nginx server
- MONGODB_URI=mongodb://mongodb:27017/llm-dsl-builder
networks:
- llm-network
depends_on:
- mongodb
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000" ]
interval: 30s
timeout: 10s
retries: 20
mongodb:
image: mongo:latest
ports:
- "27017:27017"
networks:
- llm-network
volumes:
- mongodb-data:/data/db
nginx:
image: nginx:latest
ports:
- "5555:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- llm-dsl-builder
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://llm-dsl-builder:5173" ]
interval: 30s
timeout: 10s
retries: 20
networks:
- llm-network
networks:
llm-network:
driver: bridge
volumes:
mongodb-data:
driver: local