adding dependencies
This commit is contained in:
parent
9344fce668
commit
f4af11e02e
File diff suppressed because it is too large
Load Diff
|
@ -11,7 +11,7 @@ services:
|
|||
mysql:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ./app:/var/www/html
|
||||
- .:/var/www
|
||||
environment:
|
||||
- DB_HOST=mysql
|
||||
- DB_DATABASE=laravel
|
||||
|
@ -19,9 +19,9 @@ services:
|
|||
- DB_PASSWORD=root
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
interval: 20s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
networks:
|
||||
- laravel
|
||||
|
||||
|
@ -33,7 +33,7 @@ services:
|
|||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: laravel
|
||||
ports:
|
||||
- "3306:3306"
|
||||
- "3307:3306"
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
interval: 10s
|
||||
|
@ -51,7 +51,7 @@ services:
|
|||
condition: service_healthy
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./app:/var/www/html
|
||||
- .:/var/www
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
|
|
Loading…
Reference in New Issue