Skip to content

Commit

Permalink
add docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jun 27, 2021
1 parent 0024a86 commit 3798b2a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/xservice/gogen/assets/project/docker-compose.yml.tpl
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3798b2a

Please sign in to comment.