-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.42 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
version: "3.9"
services:
nginx:
image: nginx:alpine
volumes:
- ./:/var/www
- ./_docker/nginx/conf.d/nginx.conf:/etc/nginx/nginx.conf
- ./storage/app/public:/var/www/storage/app/public
ports:
- "8888:80"
depends_on:
- app
container_name: nginx
app:
build:
context: .
dockerfile: _docker/app/Dockerfile
volumes:
- ./:/var/www
- ./_docker/app/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./_docker/app/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
depends_on:
- db
- phpmyadmin
container_name: app
environment:
- REDIS_HOST=redis
db:
image: mysql:8.0
restart: always
volumes:
- ./tmp/db:/var/lib/mysql
environment:
MYSQL_DATABASE: root
MYSQL_ROOT_PASSWORD: root
ports:
- "8101:3306"
command: mysqld --character-set-server=utf8 --skip-log-bin --collation-server=utf8_unicode_ci --sort-buffer-size=50M
container_name: db
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=db
- UPLOAD_LIMIT=2000M
- SORT_BUFFER_SIZE=50M
volumes:
- /sessions
ports:
- "8080:80"
container_name: phpmyadmin