-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.26 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
services:
db:
image: mariadb:latest
container_name: mariadb
# restart: always
user: "${UID}:${GID}"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes:
- ./bdd:/var/lib/mysql
ports:
- "3306:3306" # Expose le port sur l'hôte
networks:
- db_network
command: --bind-address=0.0.0.0 # Autorise les connexions externes
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin
restart: always
environment:
PMA_HOST: db
PMA_PORT: 3306
ports:
- "8080:80"
depends_on:
- db
networks:
- db_network
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
user: "${UID}:${GID}"
ports:
- "8080:8080"
volumes:
- ./open-webui_data:/app/backend/data
environment:
- OLLAMA_BASE_URL=http://localhost:11434
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
mailhog:
image: mailhog/mailhog
container_name: mailhog
# restart: always
ports:
- "8025:8025" # Interface Web
- "1025:1025" # Serveur SMTP
networks:
- db_network
volumes:
mariadb_data:
networks:
db_network:
driver: bridge