-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.04 KB
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
services:
app:
build:
context: .
ports:
- "8000:8000"
depends_on:
- db
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:8000/api/health" ]
interval: 10s
timeout: 5s
retries: 10
environment:
APP_ENV: local
APP_DEBUG: "true"
APP_KEY: base64:PLACEHOLDER
DB_CONNECTION: mysql
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: plant
DB_USERNAME: laravel
DB_PASSWORD: secret
volumes:
- .:/var/www
- /var/www/vendor
command: [ "php", "artisan", "serve", "--host=0.0.0.0", "--port=8000" ]
db:
image: mysql:8
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: plant
MYSQL_USER: laravel
MYSQL_PASSWORD: secret
volumes:
- dbdata:/var/lib/mysql
volumes:
dbdata: