File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ services:
5
5
- 8090:80
6
6
volumes :
7
7
- ./client:/usr/share/nginx/html
8
+ networks :
9
+ fixed :
10
+ ipv4_address : 172.20.0.3
8
11
server :
9
12
image : demo-microservice
10
13
platform : wasi/wasm
@@ -13,12 +16,25 @@ services:
13
16
ports :
14
17
- 8080:8080
15
18
environment :
16
- DATABASE_URL : mysql://root:whalehello@db :3306/mysql
19
+ DATABASE_URL : mysql://root:whalehello@172.20.0.5 :3306/mysql
17
20
RUST_BACKTRACE : full
18
21
DNS_SERVER : 127.0.0.11:53
19
22
restart : unless-stopped
20
23
runtime : io.containerd.wasmedge.v1
24
+ networks :
25
+ fixed :
26
+ ipv4_address : 172.20.0.4
21
27
db :
22
28
image : mariadb:10.9
23
29
environment :
24
30
MYSQL_ROOT_PASSWORD : whalehello
31
+ networks :
32
+ fixed :
33
+ ipv4_address : 172.20.0.5
34
+ networks :
35
+ fixed :
36
+ driver : bridge
37
+ ipam :
38
+ driver : default
39
+ config :
40
+ - subnet : 172.20.0.0/16
You can’t perform that action at this time.
0 commit comments