-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
110 lines (102 loc) · 2.93 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
services:
app:
ports:
- "9004:9004" # Expose Xdebug port
- "11111:11111" # Add this line to publish PHPStan Pro's port
build:
context: docker
dockerfile: Dockerfile
container_name: LearnHub_app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
- ./docker/php/conf.d/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./docker/supervisor/supervisor_logs:/var/log/supervisor
- ./docker/supervisor/supervisor.conf:/etc/supervisor/conf.d/supervisor.conf
environment:
- XDEBUG_CONFIG=client_host=host.docker.internal
- XDEBUG_MODE=debug
- XDEBUG_START_WITH_REQUEST=yes
- XDEBUG_CLIENT_PORT=9003
- XDEBUG_LOG=/tmp/xdebug.log
- PHP_IDE_CONFIG=serverName=Docker
networks:
- learnhub
db:
image: mysql:latest
container_name: LearnHub_mysql
restart: unless-stopped
environment:
- MYSQL_DATABASE=learnhub
- MYSQL_USER=learnhub
- MYSQL_PASSWORD=learnhub
- MYSQL_ROOT_PASSWORD=learnhub
- SERVICE_TAGS=dev
- SERVICE_NAME=mysql
ports:
- "3306:3306"
volumes:
- dbdata:/var/lib/mysql
networks:
- learnhub
nginx:
image: nginx:latest
container_name: LearnHub_nginx
restart: unless-stopped
ports:
- "8000:80"
volumes:
- ./:/var/www
- ./docker/nginx:/etc/nginx/conf.d
networks:
- learnhub
redis:
image: redis:latest
container_name: LearnHub_redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redisdata:/data
networks:
- learnhub
meilisearch:
image: getmeili/meilisearch:latest
container_name: LearnHub_meilisearch
ports:
- "7700:7700"
environment:
- MEILI_MASTER_KEY=your_master_key_here
volumes:
- meilisearchdata:/data.ms
networks:
- learnhub
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: LearnHub_phpmyadmin
environment:
- PMA_HOST=db
- PMA_PORT=3306
ports:
- "8080:80"
depends_on:
- db
networks:
- learnhub
mailpit:
image: 'axllent/mailpit:latest'
container_name: LearnHub_mailpit
ports:
- "8025:8025" # Web interface
- "1025:1025" # SMTP server
networks:
- learnhub
networks:
learnhub:
driver: bridge
volumes:
dbdata:
redisdata:
meilisearchdata: