优化PROJECT_NAME设置方式

This commit is contained in:
HEYAHONG 2024-07-15 10:51:00 +08:00
parent 19b145e56f
commit e876ce47d2
No known key found for this signature in database
GPG Key ID: 97E3E469FE2C920B
2 changed files with 2 additions and 3 deletions

View File

@ -11,10 +11,10 @@ docker_image_clean:docker_container_clean
if [ -f Dockerfile ]; then docker image rm syscall.online; else true; fi
docker_container: docker_image
if [ -f docker-compose.yml ]; then docker-compose down && docker-compose up -d; else true; fi;
if [ -f docker-compose.yml ]; then COMPOSE_PROJECT_NAME=syscall_online docker-compose down && COMPOSE_PROJECT_NAME=syscall_online docker-compose up -d; else true; fi;
docker_container_clean:
if [ -f docker-compose.yml ]; then docker-compose down; else true; fi;
if [ -f docker-compose.yml ]; then COMPOSE_PROJECT_NAME=syscall_online docker-compose down; else true; fi;
deploy:docker_container

View File

@ -17,4 +17,3 @@ services:
- syscall
ports:
- "65080:80"
name: syscall_online