-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (60 loc) · 1.38 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
version: '3.1'
services:
calc-db:
image: mysql:latest
volumes:
- "./init.sql:/data/application/init.sql"
- "./.mysql-data/db:/var/lib/mysql"
restart: always
ports:
- 3306:3306
container_name: calc-db
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: root
MYSQL_USER: user
MYSQL_PASSWORD: user
command: --init-file /data/application/init.sql
networks:
- db_net
consumer-calc-persist-service:
depends_on:
- calc-db
build:
context: ../mom-mom-pichler-wecht/consumer-calc-persist
image: consumer_calc_persist_service
#container_name: consumer-calc-persist-service
networks:
- services_net
- db_net
consumer-log-service:
build:
context: ../mom-mom-pichler-wecht/consumer-log
image: consumer_log_service
container_name: consumer-log-service
ports:
- 7777:7777
networks:
- services_net
producer-service:
build:
context: ../mom-mom-pichler-wecht/producer-service
image: producer_service
container_name: producer-service
ports:
- 8080:8080
networks:
- services_net
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- services_net
networks:
db_net:
driver: bridge
services_net:
driver: bridge