-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
43 lines (41 loc) · 909 Bytes
/
Copy pathcompose.yaml
File metadata and controls
43 lines (41 loc) · 909 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
38
39
40
41
42
43
services:
app:
build:
context: .
ports:
- "8000:8000"
- "5173:5173"
volumes:
- .:/var/www/html
environment:
APP_ENV: local
APP_DEBUG: "true"
APP_URL: http://localhost:8000
DB_CONNECTION: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: one_piece_api
DB_USERNAME: sail
DB_PASSWORD: password
VITE_APP_NAME: "One Piece API"
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:8.4
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: one_piece_api
MYSQL_USER: sail
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-ppassword"]
interval: 5s
timeout: 5s
retries: 20
volumes:
mysql-data: