-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
40 lines (39 loc) · 852 Bytes
/
compose.yaml
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
networks:
laravel:
services:
nginx:
container_name: laravel_nginx
image: nginx:latest
ports:
- 80:80
volumes:
- ./app:/var/www
- ./build/nginx/vhost.conf:/etc/nginx/conf.d/default.conf
networks:
- laravel
depends_on:
- php
php:
container_name: laravel_php
build:
context: ./build/php
dockerfile: Dockerfile
volumes:
- ./app:/var/www
- ./build/php/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- laravel
depends_on:
- mysql
mysql:
container_name: laravel_mysql
image: mysql:latest
volumes:
- ./build/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
- MYSQL_USER=laravel
- MYSQL_PASSWORD=laravel
- MYSQL_ROOT_PASSWORD=laravel
- MYSQL_DATABASE=laravel
networks:
- laravel