Compare commits
3 Commits
5ed6e1d34b
...
d9c60efc15
Author | SHA1 | Date |
---|---|---|
|
d9c60efc15 | |
|
849b9bd753 | |
|
5dc4c707ee |
|
@ -25,6 +25,7 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: laravel
|
||||
user: "1000:1000" # Match the host user's UID:GID
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
|
@ -37,6 +38,7 @@ services:
|
|||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
command: ["/var/www/html/start.sh"]
|
||||
command: >
|
||||
sh -c "sleep 10 && php artisan migrate --force && php-fpm"
|
||||
restart: unless-stopped
|
||||
|
@ -62,3 +64,4 @@ networks:
|
|||
|
||||
volumes:
|
||||
mysql-data:
|
||||
mysql-data:
|
||||
|
|
Loading…
Reference in New Issue