conf: docker
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ..:/var/www/html
|
- ..:/var/www/html
|
||||||
env_file:
|
env_file:
|
||||||
- ./env/.env.app
|
- ../.env
|
||||||
networks:
|
networks:
|
||||||
- thankcard-system-network
|
- thankcard-system-network
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
@@ -28,6 +28,16 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- thankcard-system-network
|
- 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:
|
networks:
|
||||||
thankcard-system-network:
|
thankcard-system-network:
|
||||||
name: thankcard-system-network
|
name: thankcard-system-network
|
||||||
|
|||||||
@@ -3,9 +3,8 @@ set -e
|
|||||||
|
|
||||||
cd /var/www/html
|
cd /var/www/html
|
||||||
|
|
||||||
if [ ! -f "vendor/autoload.php" ]; then
|
# Luôn chạy composer install để đảm bảo vendor được cập nhật
|
||||||
composer install
|
composer install --no-interaction --prefer-dist
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p storage/logs \
|
mkdir -p storage/logs \
|
||||||
storage/framework/cache \
|
storage/framework/cache \
|
||||||
|
|||||||
Generated
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "thankcard-system",
|
"name": "html",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
Reference in New Issue
Block a user