/
docker-compose.yml
61 lines (55 loc) · 1.37 KB
/
docker-compose.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
57
58
59
60
61
version: '3.2'
services:
terraform-api:
image: "gregoryguillou/terraform-api:${VERSION:-v0.1.9}"
ports:
- 10010:10010
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $PWD/../../api/config/settings.yaml:/app/config/settings.yaml
depends_on:
- consul
- couchbase
restart: "always"
runtime:
image: "gregoryguillou/terraform-api:${VERSION:-v0.1.9}-runtime"
depends_on:
- consul
environment:
CONSUL_IP: consul
GITHUB_REPOSITORY: "https://github.com/gregoryguillou/terraform-stacks.git"
command: ["-c", "sleep 10"]
entrypoint: ["/bin/bash"]
restart: "no"
consul:
image: consul:1.0.6
environment:
CONSUL_BIND_INTERFACE: eth0
ports:
- 8500:8500
labels:
- "terraform-api.role=consul"
restart: "always"
webapp:
image: gregoryguillou/terraform-stacks:v0.1.2-app
ports:
- 8000:8000
restart: "always"
depends_on:
- consul
couchbase:
image: couchbase:community-5.0.1
ports:
- 8091-8094:8091-8094
- 11210:11210
labels:
- "terraform-api.role=couchbase-server"
restart: "always"
couchbase-setup:
image: couchbase:community-5.0.1
volumes:
- $PWD/couchbase-setup.sh:/script/couchbase-setup.sh
depends_on:
- couchbase
command: ['/script/couchbase-setup.sh']
restart: "no"