forked from DevOps/deploy.stack
feat(builder): 新增nodejs环境配置并更新golang挂载路径
添加nodejs的env.cfg配置文件及compose.yml模板 更新golang的compose.yml中volumes路径使用变量替换
This commit is contained in:
13
builder/nodejs/compose.yml
Normal file
13
builder/nodejs/compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# run:: docker compose -p memos --env-file ./builder/nodejs/env.cfg -f ./builder/nodejs/compose.yml up -d
|
||||
|
||||
services:
|
||||
|
||||
golang:
|
||||
image: ${IMAGE_TAG_BASH}
|
||||
container_name: "build-nodejs"
|
||||
restart: always
|
||||
tty: true
|
||||
command: bash
|
||||
volumes:
|
||||
- ${Volumes_Path}/${PROJECT_NAME}:/app
|
||||
working_dir: /app
|
||||
3
builder/nodejs/env.cfg
Normal file
3
builder/nodejs/env.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
IMAGE_TAG_BASH=node:22.18.0-bookworm
|
||||
IMAGE_TAG_ASH=node:22.18.0-alpine
|
||||
Volumes_Path=/data/volumes
|
||||
Reference in New Issue
Block a user