generated from mb2dev/Symfony-Docker-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (99 loc) · 2.31 KB
/
docker-compose.yml
File metadata and controls
107 lines (99 loc) · 2.31 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
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
services:
php-fpm:
build:
context: ./docker/php-fpm
args:
USER_UID: ${USER_UID}
USER_GID: ${USER_GID}
TIMEZONE: ${TIMEZONE}
container_name: php-fpm
volumes:
- ./app:/var/www
- ./docker/php-fpm/logs/:/var/log
networks:
- symfony
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000" ]
interval: 30s
retries: 3
start_period: 5s
timeout: 10s
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "8080:80"
volumes:
- ./app:/var/www
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/nginx/logs/:/var/log/nginx
depends_on:
- php-fpm
networks:
- symfony
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.16.4
container_name: elastic
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=5gb
- cluster.routing.allocation.disk.watermark.high=3gb
- cluster.routing.allocation.disk.watermark.flood_stage=2gb
networks:
- symfony
kibana:
image: docker.elastic.co/kibana/kibana:8.5.0
container_name: kibana
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- symfony
ollama:
image: ollama/ollama:0.5.13-rocm
ports:
- "11434:11434"
devices:
- "/dev/kfd"
- "/dev/dri"
group_add:
- "video"
depends_on:
- php-fpm
environment:
- ROC_ENABLE=1
- HSA_OVERRIDE_GFX_VERSION=10.3.0
- LD_LIBRARY_PATH=/opt/rocm/lib
volumes:
- open-webui-local:/app/backend/data
networks:
- symfony
openWebUI:
image: ghcr.io/open-webui/open-webui:main
restart: always
ports:
- "3000:8080"
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
ipc: host
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- open-webui-local:/app/backend/data
networks:
- symfony
volumes:
open-webui-local:
ollama-local:
networks:
symfony:
driver: bridge