-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.59 KB
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
services:
backend:
build:
context: ./
dockerfile: ./docker/backend/Dockerfile
container_name: logly_backend
env_file:
- ./docker/.env
- ./docker/backend/.env
image: logly_backend
ports:
- 8080:8000
- 443:443
volumes:
- ./src/backend:/logly
# Add the frontend as an example repo to fix
- ./src/frontend:/example
- ./logs/backend:/root/.symfony5/log
networks:
- logly
database:
build:
context: ./
dockerfile: ./docker/database/Dockerfile
container_name: logly_database
env_file:
- ./docker/database/.env
image: logly_database
ports:
- 3306:3306
volumes:
- ./data/database:/var/lib/mysql
networks:
- logly
frontend:
build:
context: ./
dockerfile: docker/frontend/Dockerfile
container_name: logly_frontend
image: logly_frontend
volumes:
- ./src/frontend:/usr/share/nginx/html:ro
- ./logs/frontend:/var/log/nginx
ports:
- 8000:80
networks:
- logly
llm:
build:
context: ./
dockerfile: docker/llm/Dockerfile
container_name: logly_llm
env_file:
- ./docker/.env
- ./docker/llm/.env
image: logly_llm
ports:
- 11434:11434
volumes:
- ./data/llm:/root/.ollama
networks:
- logly
# Uncomment for support in Nvidia GPU environments
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# capabilities: [gpu]
# count: 1
networks:
logly:
name: logly