-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-example.yml
56 lines (52 loc) · 1.91 KB
/
docker-compose-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3'
services:
etcd:
image: bitnami/etcd:3.4.14
environment:
- TZ=Asia/Shanghai
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
# ports:
# - 2379:2379
# - 2380:2380
simple-server:
image: dkfbasel/hot-reload-go:1.14.2
volumes:
# mount the project into the docker container. Please note, that the
# app directory is symlinked into the project path specified as
# environment variable. For goconvey to work, the package must be
# linked directly into the the package directory i.e. /go/src/[PROJECTPATH]
- ./:/app
environment:
- TZ=Asia/Shanghai
# directory to look for the main go entry point (default: /app)
- DIRECTORY=/app/examples/simple/server
# specify the command that should be run, can be 'build' or 'test'
# 'build' is the default command
- CMD=build
# arguments can be used to specify arguments to pass to the executable
# on running
- ARGS=-registry_addrs=etcd:2379
depends_on:
- etcd
simple-client:
image: dkfbasel/hot-reload-go:1.14.2
volumes:
# mount the project into the docker container. Please note, that the
# app directory is symlinked into the project path specified as
# environment variable. For goconvey to work, the package must be
# linked directly into the the package directory i.e. /go/src/[PROJECTPATH]
- ./:/app
environment:
- TZ=Asia/Shanghai
# directory to look for the main go entry point (default: /app)
- DIRECTORY=/app/examples/simple/client
# specify the command that should be run, can be 'build' or 'test'
# 'build' is the default command
- CMD=build
# arguments can be used to specify arguments to pass to the executable
# on running
- ARGS=-registry_addrs=etcd:2379
depends_on:
- etcd
- simple-server