-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) 路 958 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (37 loc) 路 958 Bytes
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
# For more information: https://laravel.com/docs/sail
version: '3'
services:
mysql:
ports:
- "3306:3306"
image: mysql:8.0.23
volumes:
- "./default.conf:/etc/nginx/conf.d/default.conf"
- "/home/jjj/mysqlData:/var/lib/mysql"
networks:
- backend
environment:
- TZ=Asia/Taipei
- MYSQL_ROOT_PASSWORD=1234
laravel.test:
build:
context: ./resources/docker/
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
XDEBUG: ${APP_DEBUG}
image: sail-8.0/app
ports:
- '${APP_PORT:-80}:80'
environment:
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
volumes:
- '.:/var/www/html'
networks:
- backend
depends_on:
- "mysql"
networks:
backend:
driver: bridge