-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (65 loc) · 1.42 KB
/
docker-compose.yaml
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
# For more information: https://laravel.com/docs/sail
version: '3'
services:
artisan:
build:
context: .
target: artisan
args:
APP_ENV: local
ports:
- '${PORT_PREFIX:-0}0080:80'
env_file:
- ./.env.local
volumes:
- '.:/var/www/html'
- '/var/www/html/vendor'
depends_on:
- npm
- mysql
- redis
npm:
build:
context: .
target: npm
args:
APP_ENV: local
env_file:
- ./.env.local
volumes:
- './package.json:/var/www/html/package.json'
- './package-lock.json:/var/www/html/package-lock.json'
- './webpack.mix.js:/var/www/html/webpack.mix.js'
- './public:/var/www/html/public'
- './resources:/var/www/html/resources'
mysql:
image: 'mysql:5.7'
ports:
- '${PORT_PREFIX:-0}3306:3306'
environment:
MYSQL_DATABASE: laravel
MYSQL_ALLOW_EMPTY_PASSWORD: 1
TZ: Asia/Tokyo
volumes:
- 'mysql:/var/lib/mysql'
command: >
mysqld
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--max_allowed_packet=4MB
redis:
image: 'redis:alpine'
ports:
- '${PORT_PREFIX:-0}6379:6379'
volumes:
- 'redis:/data'
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '${PORT_PREFIX:-0}1025:1025'
- '${PORT_PREFIX:-0}8025:8025'
volumes:
mysql:
driver: local
redis:
driver: local