-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (104 loc) · 2.81 KB
/
docker-compose.yml
File metadata and controls
104 lines (104 loc) · 2.81 KB
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
version: "3.9"
services:
mysql:
image: mysql:8.0
container_name: db
restart: always
volumes:
- db-store:/var/lib/mysql
- ./logs:/var/log/mysql
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASS}
- MYSQL_ROOT_PASSWORD=${DB_PASS}
- TZ=${TZ}
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
ports:
- 13306:3306
azurite:
image: mcr.microsoft.com/azure-storage/azurite
hostname: azurite
restart: always
command: "azurite --blobHost 0.0.0.0 --blobPort 10000 --queueHost 0.0.0.0 --queuePort 10001"
ports:
- "10000:10000"
- "10001:10001"
volumes:
- ./data:/data
networks:
- dapr_template
environment:
# ref: https://github.com/Azure/Azurite/issues/1615#issuecomment-1196332300
- AZURITE_ACCOUNTS=devstoreaccount1:Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
- TZ=Asia/Tokyo
python_app:
build: ./python
volumes:
- ./python:/app/
ports:
- "8000:8000"
networks:
- dapr_template
depends_on:
- azurite
- placement
python_app_dapr:
image: "daprio/daprd:edge"
command: [
"./daprd",
"--app-id",
"python_app",
"--app-port",
"8000",
"--placement-host-address",
"placement:50006", # Dapr's placement service can be reach via the docker DNS entry
"--resources-path",
"./components",
]
volumes:
- "./dapr-components/:/components" # Mount our components folder for the runtime to use. The mounted location must match the --resources-path argument.
depends_on:
- python_app
network_mode: "service:python_app" # Attach the python_app-dapr service to the python_app network namespace
node_app:
build: ./nodejs
volumes:
- ./nodejs:/usr/src/app
ports:
- "3000:3000"
networks:
- dapr_template
depends_on:
- azurite
- placement
- mysql
node_app_dapr:
image: "daprio/daprd:edge"
command: [
"./daprd",
"--app-id",
"node_app",
"--app-port",
"3000",
"--placement-host-address",
"placement:50006", # Dapr's placement service can be reach via the docker DNS entry
"--resources-path",
"./components",
]
volumes:
- "./dapr-components/:/components" # Mount our components folder for the runtime to use. The mounted location must match the --resources-path argument.
depends_on:
- node_app
network_mode: "service:node_app"
placement:
image: "daprio/dapr:edge"
command: ["./placement", "--port", "50006"]
ports:
- "50006:50006"
networks:
dapr_template:
external: true
volumes:
db-store: