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