-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (54 loc) · 1.33 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
version: '2'
services:
time-tracker:
image: scalableminds/time-tracker:$DOCKER_TAG
ports:
- "9000:9000"
links:
- mongo
command:
- -Dconfig.file=conf/application.conf
- -Dmongodb.db=time-tracker
- -Dmongodb.url=mongo
- -Dmongodb.port=27017
- -Dmongodb.uri=mongodb://mongo:27017/time-tracker
- -Dhttp.port=9000
- -Dlogger.file=conf/application-logger-prod.xml
time-tracker-sbt:
image: scalableminds/sbt:$SBT_VERSION_TAG
volumes:
- ".:/project"
- "~/.m2:/root/.m2"
- "~/.ivy2:/root/.ivy2"
- "~/.sbt:/root/.sbt"
entrypoint: sbt
time-tracker-sbt-run:
extends:
service: time-tracker-sbt
entrypoint: >
sbt
-Dconfig.file=conf/application_dev.conf
-Dmongodb.db=time-tracker
-Dmongodb.url=mongo
-Dmongodb.port=27017
-Dmongodb.uri=mongodb://mongo:27017/time-tracker
$FLAGS
command: run
ports:
- "9000:9000"
environment:
- dev
links:
- mongo
time-tracker-webpack:
extends:
service: time-tracker-sbt
entrypoint: bash
command: -c "cd /project && npm install --unsafe-perm && node_modules/.bin/webpack"
mongo:
image: mongo
# ports:
# - "27017:27017"
volumes:
- "./dev-db/configdb:/data/configdb"
- "./dev-db/db:/data/db"