-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (30 loc) · 1.04 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
# The docker-compose.yml file is __only__ used for local development.
# This means that changes to this file will not affect cloud deployments in any way.
# Read more at https://docs.divio.com/reference/docker-docker-compose/
services:
web:
build: .
# The following command is used to start the local development server.
# Removing this line will mimic the deployment behaviour on Divio Cloud.
command: php artisan serve --host 0.0.0.0 --port 80
environment:
DATABASE_URL: "mysql://root@database_default:3306/db"
APP_DEBUG: true
links:
- database_default
ports:
- 8000:80
restart: always
volumes:
- ./:/var/www/html
- ./vendor:/var/www/html/vendor
- ./data:/data:rw
database_default:
image: mysql:8.0
environment:
MYSQL_DATABASE: db
MYSQL_ALLOW_EMPTY_PASSWORD: yes
volumes:
- database-default:/var/lib/mysql
volumes:
database-default: