-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.02 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:
nginx:
build:
context: ./
dockerfile: docker/nginx.docker
volumes:
- ./:/var/www
- ./docker/nginx/ssl:/etc/nginx/ssl
ports:
- "8080:443"
links:
- php-fpm
php-fpm:
build:
context: ./
dockerfile: docker/php-fpm.docker
volumes:
- ./:/var/www
links:
- mysql
environment:
- "DB_PORT=3306"
- "DB_HOST=mysql"
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
php-cli:
build:
context: ./
dockerfile: docker/php-cli.docker
volumes:
- ./:/var/www
links:
- mysql
environment:
- "DB_PORT=3306"
- "DB_HOST=mysql"
tty: true
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
mysql:
image: mysql:5.7
volumes:
- ./storage/docker/mysql:/var/lib/mysql
environment:
- "MYSQL_ROOT_PASSWORD=secret"
- "MYSQL_USER=app"
- "MYSQL_PASSWORD=secret"
- "MYSQL_DATABASE=laravel"
ports:
- "33061:3306"
command: --innodb_use_native_aio=0