forked from sunh-2087/Training-php-and-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.25 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
version: "3"
services:
workspace:
container_name: php_training_workspace
restart: always
image: kenini1805/laravel-workspace
volumes:
- ./:/var/www/laravel
tty: true
php-fpm:
container_name: php_training_php-fpm
restart: always
image: kenini1805/laravel-php-fpm
volumes:
- ./:/var/www/laravel
expose:
- "9000"
links:
- workspace
nginx:
container_name: php_training_nginx
restart: always
image: framgia/laravel-nginx
volumes:
- ./:/var/www/laravel
- .docker/logs/nginx:/var/log/nginx
ports:
- "80:80"
links:
- php-fpm
mysql:
container_name: php_training_mysql
restart: always
image: mysql:5.7
volumes:
- .docker/mysql/lib:/var/lib/mysql
- .docker/mysql/log:/var/log/mysql
expose:
- "3306"
environment:
MYSQL_DATABASE: php_training
MYSQL_USER: root
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
mail:
image: schickling/mailcatcher
ports:
- 1080:1080
- 1025:1025