conf: docker
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
||||
volumes:
|
||||
- ..:/var/www/html
|
||||
env_file:
|
||||
- ./env/.env.app
|
||||
- ../.env
|
||||
networks:
|
||||
- thankcard-system-network
|
||||
extra_hosts:
|
||||
@@ -28,6 +28,16 @@ services:
|
||||
networks:
|
||||
- thankcard-system-network
|
||||
|
||||
node:
|
||||
image: node:20-alpine
|
||||
container_name: thankcard-system-node
|
||||
working_dir: /var/www/html
|
||||
volumes:
|
||||
- ..:/var/www/html
|
||||
command: sh -c "npm install && npm run build"
|
||||
networks:
|
||||
- thankcard-system-network
|
||||
|
||||
networks:
|
||||
thankcard-system-network:
|
||||
name: thankcard-system-network
|
||||
|
||||
@@ -3,9 +3,8 @@ set -e
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
if [ ! -f "vendor/autoload.php" ]; then
|
||||
composer install
|
||||
fi
|
||||
# Luôn chạy composer install để đảm bảo vendor được cập nhật
|
||||
composer install --no-interaction --prefer-dist
|
||||
|
||||
mkdir -p storage/logs \
|
||||
storage/framework/cache \
|
||||
|
||||
Reference in New Issue
Block a user