forked from DevOps/deploy.stack
feat: 添加mynat项目的配置文件和环境设置
添加了env.cfg、stack.yml和config.toml文件,用于配置mynat项目的镜像标签、卷路径、服务设置和应用程序配置。这些文件为项目的部署和运行提供了必要的配置支持。
This commit is contained in:
52
mynat/config.toml
Normal file
52
mynat/config.toml
Normal file
@@ -0,0 +1,52 @@
|
||||
[[categories]]
|
||||
name = '搜索引擎'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'Google'
|
||||
url = 'https://google.com'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'Baidu'
|
||||
url = 'https://baidu.com'
|
||||
|
||||
[[categories]]
|
||||
name = '社交网络'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'Twitter'
|
||||
url = 'https://twitter.com'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'Facebook'
|
||||
url = 'https://facebook.com'
|
||||
|
||||
[[categories]]
|
||||
name = '编程工具'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'Dufs'
|
||||
url = 'http://192.168.10.61:5000/dufs/'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'DockerUI'
|
||||
url = 'http://192.168.10.61:9000/'
|
||||
|
||||
[[categories.links]]
|
||||
name = 'MyPVE'
|
||||
url = 'https://192.168.10.233:8006/'
|
||||
|
||||
[gin]
|
||||
# release_mode:: false || true
|
||||
release_mode = false
|
||||
|
||||
[log]
|
||||
level = 'info'
|
||||
output = 'stdout'
|
||||
|
||||
[security]
|
||||
cors = true
|
||||
|
||||
[server]
|
||||
# mode :: debug(开发模式) 或 release(生产模式)
|
||||
mode = 'debug'
|
||||
port = 8080
|
||||
2
mynat/env.cfg
Normal file
2
mynat/env.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
IMAGE_TAG=hub.wesais.cn/cnphpbb/mynat:v250511
|
||||
Volumes_Path=/data/volumes/mynat
|
||||
14
mynat/stack.yml
Normal file
14
mynat/stack.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
# path:: mkdir -pv /data/volumes/mynat/config
|
||||
# disc:: 请 cp -a ./mynat/config.toml /data/volumes/mynat/config
|
||||
# pull:: docker compose -p mynat --env-file ./mynat/env.cfg -f ./mynat/stack.yml pull
|
||||
# run:: docker compose -p mynat --env-file ./mynat/env.cfg -f ./mynat/stack.yml up -d
|
||||
services:
|
||||
mynat:
|
||||
image: ${IMAGE_TAG}
|
||||
container_name: mynat
|
||||
ports:
|
||||
- "8080:8080"
|
||||
restart: always
|
||||
volumes:
|
||||
- ${Volumes_Path}/config:/app/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
Reference in New Issue
Block a user