-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
28 lines (27 loc) · 750 Bytes
/
docker-compose.yaml
File metadata and controls
28 lines (27 loc) · 750 Bytes
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
version: '2'
services:
github-authorized-keys:
build: ./
container_name: github-authorized-keys
environment:
- ETCD_ENDPOINT=http://etcd:2379
- TEST_ETCD_ENDPOINT=http://etcd:2379
links:
- "etcd:etcd"
volumes:
- "./:/go/src/github.com/cloudposse/github-authorized-keys"
entrypoint:
- "sh"
command: "-c \"while true; do echo 'Hit CTRL+C'; sleep 1; done\""
restart: always
etcd:
image: quay.io/coreos/etcd:v2.3.7
command:
- "--advertise-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001"
- "--listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001"
ports:
- "2379:2379"
- "2380:2380"
- "4001:4001"
- "7001:7001"
restart: always