fix: bind port only local

This commit is contained in:
Innei
2023-08-11 00:24:09 +08:00
parent a455b1a580
commit 4993076868
2 changed files with 6 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ services:
volumes:
- ./data/db:/data/db
ports:
- '3344:27017'
- '127.0.0.1:3344:27017'
networks:
- app-network
restart: always
@@ -47,7 +47,7 @@ services:
container_name: redis
ports:
- '3333:6379'
- '127.0.0.1:3333:6379'
networks:
- app-network
restart: always

View File

@@ -33,7 +33,10 @@ async function main() {
force: true,
recursive: true,
})
execSync('ln -s $PWD/assets $PWD/apps/core/assets ')
const symlinkPath = path.resolve(cwd, 'apps/core/assets')
fs.rmSync(path.resolve(cwd, symlinkPath))
fs.symlinkSync(path.resolve(cwd, 'assets'), path.resolve(cwd, symlinkPath))
}
}