title: Docker Compose Use Domain Instead of Local Host
body: <p>Sorry I am brand new to docker and web development in general but I made basic docker compose server that hosts my local PHP file and displays some text. It works fine with the local host but I bought some domains and was wondering how I change from connecting to localhost to a domain so anyone can connect to it. My IP is already set up for outside connect and works for my ssh server so I do not need to do that. I just can't seem to find any results when I try to look it up. So I just need to know what to change in my docker compose files or settings to make go a domain instead. </p>
  
  <p>Here is my docker-compose file: </p>
  
  <pre><code>
  services:
    product-service:
      build: ./product
      volumes:
        - ./product:/usr/src/app
      ports: 
        - 5001:80
  
    website:
        image: php:apache
        volumes:
          - ./website:/var/www/html 
        ports:
          - 5000:80
        depends_on:
          - product-service
  
  
  </code></pre>