-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
73 lines (66 loc) · 2 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
services:
rabbitmq:
image: rabbitmq:3.11.10-management-alpine
container_name: creek-rabbitmq
expose:
- '5672'
ports:
- '15672:15672'
mariadb:
image: mariadb
container_name: creek-mariadb
environment:
- MARIADB_ROOT_PASSWORD=creek-pass
- MARIADB_PASSWORD=creek-pass
- MARIADB_MYSQL_LOCALHOST_GRANTS=creek
- MARIADB_USER=creek
- MARIADB_DATABASE=creek-db
expose:
- '3306'
ports:
- '3306:3306'
creek-consumer:
image: creek-consumer
container_name: creek-consumer
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- LANG=en_US.utf8
- LC_ALL=en_US.utf8
- JDK_JAVA_OPTIONS='-Dfile.encoding=UTF-8'
depends_on:
- rabbitmq
creek-transformer:
image: creek-transformer
container_name: creek-transformer
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- SPRING_CLOUD_STREAM_BINDINGS_INPUT_DESTINATION=usgs-data
- SPRING_CLOUD_STREAM_BINDINGS_INPUT_GROUP=foo
- SPRING_CLOUD_STREAM_BINDINGS_OUTPUT_DESTINATION=creek-data
- SPRING_CLOUD_STREAM.BINDINGS.OUTPUT_GROUP=foo
depends_on:
- rabbitmq
creek-storage:
image: creek-storage
container_name: creek-storage
environment:
- SPRING_DATASOURCE_URL=jdbc:mariadb://mariadb:3306/creek-db?useSsl=false
- SPRING_DATASOURCE_USERNAME=creek
- SPRING_DATASOURCE_PASSWORD=creek-pass
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.mariadb.jdbc.Driver
- SPRING_RABBITMQ_HOST=rabbitmq
- SPRING_CLOUD_STREAM_BINDINGS_INPUT_DESTINATION=creek-data
- SPRING_CLOUD_STREAM_BINDINGS_INPUT_GROUP=creek-data-group
depends_on:
- rabbitmq
creek-producer:
image: creek-producer
container_name: creek-producer
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- SPRING_CLOUD_STREAM_BINDINGS_OUTPUT_DESTINATION=usgs-data
- SPRING_CLOUD_STREAM_BINDINGS_OUTPUT_GROUP=foo
depends_on:
- creek-consumer
- creek-transformer
- creek-storage