Skip to content

Commit a059ca7

Browse files
committedNov 27, 2015
added simple version of docker compose
1 parent 8dbffb6 commit a059ca7

File tree

2 files changed

+51
-32
lines changed

2 files changed

+51
-32
lines changed
 

‎docker-compose-influx.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
app:
2+
build: .
3+
volumes:
4+
- .:/app:rw
5+
links:
6+
- redis:redis
7+
- influx:influx
8+
ports:
9+
- "8500:8500"
10+
- "8888:8888"
11+
environment:
12+
- RedisAddress=redis:6379
13+
- RedisPassword=very_secret
14+
- InfluxAddress=influx
15+
- InfluxDBName=events
16+
- INFLUX_USER=root
17+
- INFLUX_PWD=root
18+
19+
redis:
20+
image: tutum/redis
21+
environment:
22+
- REDIS_PASS=very_secret
23+
- REDIS_MAXMEMORY_POLICY="allkeys-lru"
24+
- REDIS_MAXMEMORY="512mb"
25+
26+
influx:
27+
image: tutum/influxdb:0.9
28+
environment:
29+
- ADMIN_USER=root
30+
- INFLUXDB_INIT_PWD=root
31+
- PRE_CREATE_DB=events
32+
ports:
33+
- "8083:8083"
34+
- "8086:8086"
35+
36+
grafana:
37+
image: tutum/grafana
38+
links:
39+
- influx:influx
40+
ports:
41+
- "80:80"
42+
environment:
43+
- HTTP_USER=grafanauser
44+
- HTTP_PASS=grafanapass
45+
- INFLUXDB_PROTO=http
46+
- INFLUXDB_HOST=influx
47+
- INFLUXDB_PORT=8086
48+
- INFLUXDB_NAME=logrus
49+
- INFLUXDB_USER=root
50+
- INFLUXDB_PASS=root
51+
- INFLUXDB_IS_GRAFANADB=true

‎docker-compose.yml

-32
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,16 @@ app:
44
- .:/app:rw
55
links:
66
- redis:redis
7-
- influx:influx
87
ports:
98
- "8500:8500"
109
- "8888:8888"
1110
environment:
1211
- RedisAddress=redis:6379
1312
- RedisPassword=very_secret
14-
- InfluxAddress=influx
15-
- InfluxDBName=events
16-
- INFLUX_USER=root
17-
- INFLUX_PWD=root
1813

1914
redis:
2015
image: tutum/redis
2116
environment:
2217
- REDIS_PASS=very_secret
2318
- REDIS_MAXMEMORY_POLICY="allkeys-lru"
2419
- REDIS_MAXMEMORY="512mb"
25-
26-
influx:
27-
image: tutum/influxdb:0.9
28-
environment:
29-
- ADMIN_USER=root
30-
- INFLUXDB_INIT_PWD=root
31-
- PRE_CREATE_DB=events
32-
ports:
33-
- "8083:8083"
34-
- "8086:8086"
35-
36-
grafana:
37-
image: tutum/grafana
38-
links:
39-
- influx:influx
40-
ports:
41-
- "80:80"
42-
environment:
43-
- HTTP_USER=grafanauser
44-
- HTTP_PASS=grafanapass
45-
- INFLUXDB_PROTO=http
46-
- INFLUXDB_HOST=influx
47-
- INFLUXDB_PORT=8086
48-
- INFLUXDB_NAME=logrus
49-
- INFLUXDB_USER=root
50-
- INFLUXDB_PASS=root
51-
- INFLUXDB_IS_GRAFANADB=true

0 commit comments

Comments
 (0)
Please sign in to comment.