-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-dev.yaml
91 lines (85 loc) · 1.93 KB
/
docker-compose-dev.yaml
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
services:
mojodex-db:
build:
context: ./pgsql
image: mojodex/db
container_name: mojodex_db
volumes:
- ./data/postgresql:/var/lib/postgresql/data
env_file:
- .env
ports:
- "5432:5432"
mojodex-backend:
build:
context: .
dockerfile: ./backend/Dockerfile
image: mojodex/backend
container_name: mojodex_backend
env_file:
- .env
ports:
- "5001:5000"
volumes:
- ./data:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/" ]
interval: 30s
timeout: 10s
retries: 5
depends_on:
- mojodex-db
mojodex-scheduler:
build:
context: ./scheduler
image: mojodex/scheduler
container_name: mojodex_scheduler
env_file:
- .env
volumes:
- ./data:/data
depends_on:
mojodex-backend:
condition: service_healthy
mojodex-background:
build:
context: .
dockerfile: ./background/Dockerfile
image: mojodex/background
container_name: mojodex_background
env_file:
- .env
ports:
- "5002:5000"
volumes:
- ./data:/data
depends_on:
- mojodex-db
mojodex-webapp-dev:
container_name: mojodex_webapp_dev
build:
context: ./webapp
dockerfile: Dockerfile.dev
args:
- SOCKETIO_URI=http://localhost:5001 # use defaut for local execution
- TERMS_URI= # optional
- PRIVACY_URI= # optional
- CHROME_EXTENSION_ID= # optional
- MOJODEX_WEBAPP_SECRET=webapp_secret # use defaut for local execution
env_file:
- .env
ports:
- "3000:3000"
depends_on:
- mojodex-backend
volumes:
- ./.next:/app/.next
- ./webapp:/app
- ./node_modules:/app/node_modules
mojodex-ollama:
image: ollama/ollama
container_name: mojodex_ollama
volumes:
- ~/.ollama:/root/.ollama
ports:
- 11434:11434