skip to Main Content

How to use nginx (intsalled on Docker) to reverse proxy MySQL (installed on Docker too)

Here is docker-compose.yaml services: nginx: image: nginx:1.23.3 container_name: nginx volumes: - /lnmpg/nginx/conf.d:/etc/nginx/conf.d:ro,cached - /lnmpg/nginx/nginx.conf:/etc/nginx/nginx.conf :ro - /lnmpg/nginx/log:/var/log/nginx - /lnmpg/nginx/html:/usr/share/nginx/html ports: - "80:80" - "443:443" - "33060:3306" environment: - TZ=Asia/Shanghai restart: always networks: - nginx-mysql mysql: image: mysql:5.7.41 # ports: #…

VIEW QUESTION
Back To Top
Search