modify scripts

This commit is contained in:
oscarz
2025-07-12 11:07:47 +08:00
parent 201e9ab707
commit 96790a8365
2 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,38 @@
---
services:
dev-env:
image: dev-env:latest
build:
context: .
dockerfile: Dockerfile
container_name: dev-env
restart: unless-stopped
platform: linux/x86_64
networks:
- devops
environment:
- TZ=Asia/Shanghai
ports:
- "6080:80" # 如果你两个容器里端口用途不同,这里保留一个即可
volumes:
# docker 共享目录
- ~/dockers/sharedata:/root/sharedata
- ~/dockers/projects:/root/projects
# 主机目录
- ~/dockers/dev-env/hostdir:/root/hostdir
# Go pkg 目录
- ~/dockers/dev-env/go-mod:/root/go
stdin_open: true
tty: true
networks:
devops:
external: true