-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
62 lines (62 loc) · 1.01 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
version: "2.4"
services:
broker:
image: rmohr/activemq:latest
ports:
- 8161:8161
- 61613:61613
db:
image: postgres:10.1-alpine
ports:
- 5432:5432
app:
build:
context: .
dockerfile: DockerfileTest
env_file: .env
volumes:
- .:/app
depends_on:
- db
- broker
ports:
- "8000:${PORT}"
mem_limit: 256mb
command:
[
"./wait-for-it.sh",
"broker:61613",
"-t",
"120",
"--",
"./wait-for-it.sh",
"db:5432",
"-t",
"20",
"--",
"./start.sh",
]
integration-tests:
build:
context: .
dockerfile: DockerfileTest
env_file: .env
volumes:
- .:/app
depends_on:
- db
- broker
command:
[
"./wait-for-it.sh",
"broker:61613",
"-t",
"120",
"--",
"./wait-for-it.sh",
"db:5432",
"-t",
"20",
"--",
"tox",
]