Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1499

use docker for multiple domain with http & https

$
0
0

I'm new to docker.
I've installed docker on ubuntu 22 and I wants to know how to connect multiple domains on it (example: mydomain1.com, mydomain2.com etc... ). to have access with http and https.
I don't know the road map. I just installed docker on the Ubuntu 22 and this is my docker-compose file:

version: '3.8'services:  nginx:    image: nginx:latest    container_name: nginx    ports:      - "80:80"    volumes:      - ./nginx.conf:/etc/nginx/nginx.conf      - ./www:/var/www/html    depends_on:      - php      - mysql  php:    image: php:latest    container_name: php    volumes:      - ./www:/var/www/html    depends_on:      - mysql  mysql:    image: mysql:latest    container_name: mysql    environment:      MYSQL_ROOT_PASSWORD: ********    volumes:      - mysql_data:/var/lib/mysql  phpmyadmin:    image: phpmyadmin/phpmyadmin    container_name: phpmyadmin    ports:      - "8080:80"    environment:      PMA_HOST: mysql      PMA_PASSWORD: ********    depends_on:      - mysqlvolumes:  mysql_data:

let me know if you need more information. tnx


Viewing all articles
Browse latest Browse all 1499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>