-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
135 lines (121 loc) · 2.66 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.8'
services:
# Actual services
mongodb:
image: mongo:latest
container_name: mongodb_container
volumes:
- mongodb_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- focus-day-network
sqlite:
image: nouchka/sqlite3:latest
container_name: sqlite_container
volumes:
- sqlite_data:/root/db
networks:
- focus-day-network
stdin_open: true
tty: true
restart: unless-stopped
swaggerui:
image: swaggerapi/swagger-ui
container_name: swagger_ui_container
ports:
- "8001:8080"
environment:
SWAGGER_JSON: /docs/openapi.json
BASE_URL: /swagger
volumes:
- ./requirements/openapi.json:/docs/openapi.json
openapi_mock:
container_name: server_mock
image: jormaechea/open-api-mocker
volumes:
- ./requirements/openapi.json:/app/schema.json
ports:
- "8002:5000"
ollama:
image: ollama/ollama:latest
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ollama:/root/.ollama
- ./start-ollama.sh:/start-ollama.sh
container_name: ollama
ports:
- "11434:11434"
networks:
- focus-day-network
focusday24:
# Builds a base image used in frontend, backend, desktop ...
# Prod/Dev determined by environment variable
build:
context: .
dockerfile: Dockerfile.base
target: focusday24${ENVIRONMENT:-dev}
image: focusday24:latest
# Software development
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile
container_name: frontend_container
volumes:
- ./:/workspace
ports:
- "8003:6734"
env_file:
- .env
- ./frontend/.env.${ENVIRONMENT:-dev}
depends_on:
- backend
- ollama
- focusday24
networks:
- focus-day-network
desktop:
build:
context: ./desktop
dockerfile: ./Dockerfile
container_name: desktop_container
volumes:
- ./:/workspace
ports:
- "8004:80"
env_file:
- .env
- ./desktop/.env.${ENVIRONMENT:-dev}
depends_on:
- backend
- ollama
- focusday24
networks:
- focus-day-network
backend:
build:
context: ./backend
dockerfile: ./Dockerfile
container_name: backend_container
volumes:
- ./:/workspace
env_file:
- .env
- ./backend/.env.${ENVIRONMENT:-dev}
depends_on:
- mongodb
- sqlite
- ollama
- focusday24
networks:
- focus-day-network
volumes:
mongodb_data:
sqlite_data:
ollama:
networks:
focus-day-network:
driver: bridge