-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (45 loc) · 1.01 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
version: '3'
services:
nginx:
build:
context: ./docker/
dockerfile: nginx.docker
volumes:
- ./:/src
depends_on:
- php-fpm
ports:
- 8000:80
php-fpm:
build:
context: ./docker/
dockerfile: php-fpm.docker
volumes:
- ./:/src
depends_on:
- mysql
php-cli:
build:
context: ./docker/
dockerfile: php-cli.docker
volumes:
- ./:/src
depends_on:
- mysql
mysql:
image: mysql
ports:
- 3366:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: laravel
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes:
- ./storage/docker/mysql:/var/lib/mysql
adminer:
image: adminer
ports:
- 8080:8080
environment:
ADMINER_DEFAULT_SERVER: mysql