-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
88 lines (88 loc) · 2 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
services:
nginx:
image: nginx:1.15
ports:
- 82:80
links:
- php
- database
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./:/app
extra_hosts:
- "host.docker.internal:host-gateway"
php:
build:
dockerfile: Dockerfile
target: php-fpm-dev
environment:
- APP_ENV=dev
volumes:
- ./:/app
links:
- database
- ollamaphp
extra_hosts:
- "host.docker.internal:host-gateway"
worker:
build:
dockerfile: Dockerfile
target: php-fpm-dev
environment:
- APP_ENV=dev
volumes:
- ./:/app
links:
- database
- ollamaphp
command: sh -c 'until nc -z database 3306; do echo "Waiting for the database to become available..."; sleep 1; done; php bin/console messenger:consume async -vv'
extra_hosts:
- "host.docker.internal:host-gateway"
mailer:
image: schickling/mailcatcher
ports:
- "1080:1080" # web
- "1025:1025" # smtp
database:
image: mariadb:10.6.11
restart: on-failure
volumes:
- database-volume:/var/lib/mysql
environment:
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: password
ports:
- 23306:3306
ollamaphp:
volumes:
- ./ollama/ollama:/root/.ollama
container_name: ollamaphp
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ports:
- 11434:11434
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ollama-webuiphp:
image: ghcr.io/ollama-webui/ollama-webui:main
container_name: ollama-webuiphp
volumes:
- ./ollama/ollama-webui:/app/backend/data
depends_on:
- ollamaphp
ports:
- 3000:8080
environment:
- '/ollama/api=http://ollama:11434/api'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
database-volume: