-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.test.yml
77 lines (74 loc) · 1.63 KB
/
docker-compose.test.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
version: '3.4'
services:
db:
container_name: db
build:
context: .
dockerfile: dev/database/Dockerfile
image: patchman-engine-db
ports:
- 5433:5432
env_file:
- ./conf/database.env
kafka:
container_name: kafka
build:
context: .
dockerfile: ./dev/kafka/Dockerfile
image: patchman-engine-kafka
env_file:
- ./conf/kafka.env
volumes:
- ./dev/kafka/secrets:/etc/kafka/secrets
- ./dev/kafka:/app
ports:
- 29092:29092
- 29093:29093
- 9092:9092
- 9093:9093
- 9099:9099
security_opt:
- label=disable
# https://github.com/wurstmeister/kafka-docker/issues/389#issuecomment-875428899
restart: always
platform:
container_name: platform
build:
context: .
dockerfile: Dockerfile
args:
- INSTALL_TOOLS=yes
target: buildimg
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/platform.env
command: ./dev/scripts/docker-compose-entrypoint.sh platform
restart: unless-stopped
ports:
- 9001:9001
volumes:
- ./conf/cdappconfig.json:/go/src/app/conf/cdappconfig.json
depends_on:
- kafka
- db
security_opt:
- label=disable
test:
container_name: test
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/database.env
- ./conf/database_admin.env
- ./conf/gorun.env
- ./conf/test.env
depends_on:
- db
- platform
user: root
command: ./scripts/go_test_on_ci.sh
volumes:
- ./:/go/src/app/
security_opt:
- label=disable