Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DNS error on WASM adding static IPs to every container on a new network #22

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:
- 8090:80
volumes:
- ./client:/usr/share/nginx/html
networks:
fixed:
ipv4_address: 172.20.0.3
server:
image: demo-microservice
platform: wasi/wasm
Expand All @@ -13,12 +16,25 @@ services:
ports:
- 8080:8080
environment:
DATABASE_URL: mysql://root:whalehello@db:3306/mysql
DATABASE_URL: mysql://root:whalehello@172.20.0.5:3306/mysql
RUST_BACKTRACE: full
DNS_SERVER: 127.0.0.11:53
restart: unless-stopped
runtime: io.containerd.wasmedge.v1
networks:
fixed:
ipv4_address: 172.20.0.4
db:
image: mariadb:10.9
environment:
MYSQL_ROOT_PASSWORD: whalehello
networks:
fixed:
ipv4_address: 172.20.0.5
networks:
fixed:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/16
Loading