-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.it.yml
106 lines (93 loc) · 3.37 KB
/
docker-compose.it.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
99
100
101
102
103
104
105
106
# Overwrite service configurations of global docker-compose.yml
# for INTEGRATION TESTING, including MOCKS and INTEGRATION TEST SERVICES.
# can be used locally or in the CI ENVIRONMENT.
version: "3.7"
services:
# ----------------- ADAPTER SERVICE (PORTS 9000 - 9099) --------------------
adapter-it:
image: open-data-service/ods-main/adapter-it
build:
dockerfile: Dockerfile
context: ./adapter/integration-test/
environment:
ADAPTER_API: http://adapter:8080
MOCK_SERVER_API: http://adapter-it:8081
MOCK_SERVER_PORT: 8081
RABBIT_HEALTH: http://rabbitmq:15672
AMQP_URL: "amqp://rabbit_adm:R4bb!7_4DM_p4SS@rabbitmq:5672"
AMQP_EXCHANGE: "ods_global"
AMQP_CONNECTION_RETRIES: 40
AMQP_CONNECTION_BACKOFF: 2000
STARTUP_DELAY: 5000
PUBLICATION_DELAY: 2000
depends_on:
- adapter
- rabbitmq
# ----------------- SCHEDULER SERVICE (PORTS 9300 - 9399) --------------------
scheduler:
ports:
- "9300:8080"
environment:
ADAPTER_SERVICE_URL: http://scheduler-it:8081
scheduler-it:
image: open-data-service/ods-main/scheduler-it
build:
context: ./scheduler/integration-test/
environment:
SCHEDULER_API: http://scheduler:8080
AMQP_URL: "amqp://rabbit_adm:R4bb!7_4DM_p4SS@rabbitmq:5672"
AMQP_CONNECTION_RETRIES: 40
AMQP_CONNECTION_BACKOFF: 2000
MOCK_SERVER_PORT: 8081
MOCK_SERVER_API: http://scheduler-it:8081
depends_on:
- scheduler
- rabbitmq
# ----------------- STORAGE SERVICE (PORTS 9400 - 9499) --------------------
storage-it:
image: open-data-service/ods-main/storage-it
build:
context: ./storage/integration-test
environment:
STORAGE_API: http://storage:3000
STORAGEMQ_API: http://storage-mq:8080
AMQP_URL: "amqp://rabbit_adm:R4bb!7_4DM_p4SS@rabbitmq:5672"
depends_on:
- storage
- storage-mq
# ----------------- PIPELINE SERVICE (PORTS 9500 - 9599) --------------------
pipeline-it:
image: open-data-service/ods-main/pipeline-it
build:
context: ./pipeline/integration-test/
environment:
PIPELINE_API: http://pipeline:8080
AMQP_URL: "amqp://rabbit_adm:R4bb!7_4DM_p4SS@rabbitmq:5672"
AMQP_EXCHANGE: "ods_global"
AMQP_IT_QUEUE: "pipeline_it"
AMQP_PIPELINE_EXECUTION_TOPIC: "pipeline.execution.*"
AMQP_PIPELINE_EXECUTION_SUCCESS_TOPIC: "pipeline.execution.success"
AMQP_PIPELINE_EXECUTION_ERROR_TOPIC: "pipeline.execution.error"
AMQP_PIPELINE_CONFIG_CREATED_TOPIC: "pipeline.config.created"
AMQP_PIPELINE_CONFIG_UPDATED_TOPIC: "pipeline.config.updated"
AMQP_PIPELINE_CONFIG_DELETED_TOPIC: "pipeline.config.deleted"
AMQP_IMPORT_SUCCESS_TOPIC: "datasource.execution.success"
PUBLICATION_WAIT_TIME_MS: 2000
PIPELINE_EXECUTION_WAIT_TIME_MS: 10000
CONNECTION_RETRIES: 3
CONNECTION_BACKOFF: 2000
depends_on:
- pipeline
# ----------------- NOTIFICATION SERVICE (PORTS #TODO) --------------------
notification:
environment:
SLACK_BASE_URL: http://notification-it:8081/slack
notification-it:
image: open-data-service/ods-main/notification-it
build:
context: ./notification/integration-test/
environment:
NOTIFICATION_API: http://notification:8080
MOCK_RECEIVER_URL: http://notification-it:8081
depends_on:
- notification