Skip to content

Commit d095337

Browse files
committed
change to version 2
1 parent ad9605f commit d095337

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

docker-compose.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
maven:
2-
image: maven:3.3.3-jdk-8
3-
volumes:
4-
- '.:/usr/src/app'
5-
- '~/.m2:/root/.m2'
6-
working_dir: /usr/src/app
7-
environment:
8-
SPRING_APPLICATION_JSON: '{"spring.redis.host":"redis.host"}'
9-
command: mvn -B clean test
10-
links:
11-
- redis:redis.host
12-
redis:
13-
image: redis:3.0.3
1+
version: '2'
2+
3+
services:
4+
maven:
5+
image: maven:3.3.3-jdk-8
6+
volumes:
7+
- '.:/usr/src/app'
8+
- '~/.m2:/root/.m2'
9+
working_dir: /usr/src/app
10+
environment:
11+
SPRING_APPLICATION_JSON: '{"spring.redis.host":"redis.host"}'
12+
command: mvn -B clean test
13+
links:
14+
- redis:redis.host
15+
redis:
16+
image: redis:3.0.3

0 commit comments

Comments
 (0)