From 3798b2a9931bfee1945bf42dd35b3f13e54cf089 Mon Sep 17 00:00:00 2001 From: yinheli Date: Mon, 28 Jun 2021 03:52:49 +0800 Subject: [PATCH] add docker-compose file --- .../gogen/assets/project/docker-compose.yml.tpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/xservice/gogen/assets/project/docker-compose.yml.tpl diff --git a/tools/xservice/gogen/assets/project/docker-compose.yml.tpl b/tools/xservice/gogen/assets/project/docker-compose.yml.tpl new file mode 100644 index 0000000..4d02c31 --- /dev/null +++ b/tools/xservice/gogen/assets/project/docker-compose.yml.tpl @@ -0,0 +1,15 @@ +version: "3" +services: + # you may change ports and environment configuration + # run + # docker-componse up -d --build + {{.Name}}: + build: . + hostname: {{.Name}} + ports: + - "5000:5000" + environment: + - XSERVICE_ETCD=10.25.0.23:2379 + - XSERVICE_ETCD_USER=root + - XSERVICE_ETCD_PASSWORD=123456 + restart: "unless-stopped"