-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
96 lines (96 loc) · 2.6 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
services:
############################
# Node app + Dapr sidecar
############################
controller:
build: ./node
ports:
- "3000:3000"
- "50001"
depends_on:
- redis
- placement
networks:
- dapr-callendar-network
environment:
- EVENT_APP=go-events
controller-dapr:
image: "daprio/daprd:edge"
command: ["./daprd", "-app-id", "controller", "-app-port", "3000", "-placement-host-address", "placement:50006", "-dapr-http-port", "3500", "-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- controller
network_mode: "service:controller"
############################
# Python app + Dapr sidecar
############################
messages:
build: ./python
depends_on:
- redis
- placement
networks:
- dapr-callendar-network
environment:
- FLASK_RUN_PORT=5000
messages-dapr:
image: "daprio/daprd:edge"
command: ["./daprd", "-app-id", "messages", "-app-port", "5000", "-dapr-http-port", "3501", "-placement-host-address", "placement:50006", "-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- messages
network_mode: "service:messages"
############################
# Go app + Dapr sidecar
############################
go-events:
build: ./go
environment:
- DAPR_HTTP_PORT=3503
depends_on:
- redis
- placement
networks:
- dapr-callendar-network
go-events-dapr:
image: "daprio/daprd:edge"
command: ["./daprd", "-app-id", "go-events", "-app-port", "6000", "-placement-host-address", "placement:50006", "-dapr-http-port", "3503", "-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- go-events
network_mode: "service:go-events"
############################
# Dapr placement service
############################
placement:
image: "daprio/dapr"
command: ["./placement", "-port", "50006"]
ports:
- "50006:50006"
networks:
- dapr-callendar-network
############################
# Redis state store
############################
redis:
image: docker.io/bitnami/redis:7.2
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
# - ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
- REDIS_PASSWORD=Pa55w.rd
ports:
- '6379'
networks:
- dapr-callendar-network
volumes:
- 'redis_data:/bitnami/redis/data'
volumes:
redis_data:
driver: local
networks:
dapr-callendar-network: