diff --git a/mynat/config.toml b/mynat/config.toml new file mode 100644 index 0000000..9d893a2 --- /dev/null +++ b/mynat/config.toml @@ -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 diff --git a/mynat/env.cfg b/mynat/env.cfg new file mode 100644 index 0000000..681aeb7 --- /dev/null +++ b/mynat/env.cfg @@ -0,0 +1,2 @@ +IMAGE_TAG=hub.wesais.cn/cnphpbb/mynat:v250511 +Volumes_Path=/data/volumes/mynat diff --git a/mynat/stack.yml b/mynat/stack.yml new file mode 100644 index 0000000..491ea63 --- /dev/null +++ b/mynat/stack.yml @@ -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 \ No newline at end of file