-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 902 Bytes
/
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
version: '3'
services:
web:
image: nginx:1.14-alpine
ports:
- "8080:80"
networks:
- frontend
volumes:
- ./nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./www:/var/www
- ./logs/nginx:/var/log/nginx
php:
image: wiwatsrt/docker-laravel-php7fpm:7.2
networks:
- frontend
- backend
volumes:
- ./www:/var/www
depends_on:
- mysql
mysql:
image: mariadb:10.1
networks:
- backend
volumes:
- db_data:/var/lib/mysql
- ./mysql/conf.d:/etc/mysql/conf.d
- ./mysql/initdb:/docker-entrypoint-initdb.d
- ./logs/mysql:/var/log/mysql
environment:
- MYSQL_ROOT_PASSWORD=R!123456#
- MYSQL_DATABASE=homestead
- MYSQL_USER=homestead
- MYSQL_PASSWORD=secret
networks:
frontend:
backend:
volumes:
db_data: