-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.22 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
version: '3.8'
services:
nginx:
container_name: spa_nginx
image: nginx:1.15
ports:
- "80:80"
volumes:
- ./laravel:/usr/share/nginx/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
php-fpm:
container_name: spa_php-fpm
build: ./docker/php-fpm
volumes:
- ./laravel:/var/www/html
composer:
container_name: spa_composer
image: composer:latest
volumes:
- ./:/app
entrypoint: composer
node:
container_name: spa_frontend
build:
context: ./
dockerfile: ./docker/frontend/Dockerfile
ports:
- "8080:8080"
volumes:
- ./frontend:/app
mysql:
container_name: spa_mysql
image: mysql:5.7
environment:
MYSQL_DATABASE: spa_db
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: spa_user
MYSQL_PASSWORD: password
TZ: Asia/Tokyo
ports:
- "53306:3306"
volumes:
- spa_data:/var/lib/mysql
mail:
container_name: spa_mail
image: mailhog/mailhog
ports:
- "8025:8025"
environment:
MH_STORAGE: maildir
MH_MAILDIR_PATH: /tmp
volumes:
- mail_sample_dir:/tmp
volumes:
spa_data:
driver: local
mail_sample_dir:
driver: local