forked from zio/zio-quill
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
98 lines (91 loc) · 2.18 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.2'
services:
postgres:
image: postgres:9.6
ports:
- "15432:5432"
environment:
- POSTGRES_USER=postgres
mysql:
image: mysql:5.7
ports:
- "13306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=quill_test
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
cassandra:
image: cassandra:3.11
ports:
- "19042:9042"
- "19160:9160"
environment:
- MAX_HEAP_SIZE=512m
- HEAP_NEWSIZE=256m
orientdb:
image: orientdb:latest
ports:
- "12424:2424"
- "12480:2480"
environment:
- ORIENTDB_ROOT_PASSWORD=root
# sqlserver:
# image: microsoft/mssql-server-linux
# ports:
# - "11433:1433"
# environment:
# - ACCEPT_EULA=Y
# - SA_PASSWORD=QuillRocks!
setup:
build:
cache_from:
- quillscala/setup:latest
context: .
dockerfile: ./build/Dockerfile-setup
image: quillscala/setup
links:
- postgres:postgres
- mysql:mysql
- cassandra:cassandra
- orientdb:orientdb
# - sqlserver:sqlserver
volumes:
- ./:/app
command:
- ./build/setup.sh
sbt:
build:
cache_from:
- quillscala/sbt:latest
context: .
dockerfile: ./build/Dockerfile-sbt
image: quillscala/sbt
ports:
- "15005:5005"
command: sbt
links:
- postgres:postgres
- mysql:mysql
- cassandra:cassandra
- orientdb:orientdb
# - sqlserver:sqlserver
volumes:
- ./:/app
- ~/.ivy2:/root/.ivy2
- ~/.m2:/root/.m2
- ~/.sbt:/root/.sbt
- ~/.ssh:/root/.ssh
environment:
- TRAVIS_PULL_REQUEST
- TRAVIS_BRANCH
- SCALA_VERSION
- ENCRYPTION_PASSWORD
- SBT_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dfile.encoding=UTF-8 -Xms512m -Xmx1536m -Xss2m -XX:ReservedCodeCacheSize=256m -XX:+TieredCompilation -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- SQL_SERVER_HOST=sqlserver
- SQL_SERVER_PORT=1433
- CASSANDRA_HOST=cassandra
- CASSANDRA_PORT=9042