This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# docker-compose.yml
version:'3'
services:
wordpress:
image:wordpress
container_name:wp_xg
ports:
- "18991:80"
environment:
WORDPRESS_DB_HOST:rm-2ze61mfm31936gqjtio.mysql.rds.aliyuncs.com # 因为 docker-compose 会自动把 mysql 的名字用做网络标识,所以在连接数据库的时候该字段就不需要手动指定 IP 地址了,直接用“service”的名字 mysql 就行了。