title: multiple docker compose container - single ip
body: <p>I have this application.</p>
  
  <p>How can I assign a single ip-address to the web-service and use the database within?</p>
  
  <pre><code>version: "2"
  services:
    web:
     image: kartoffeltoby/typo3:latest
     hostname: localhost
     container_name: web
     ports:
      - 80:80
     link:
      - db:database
     volumes:
      - ./www/:/var/www/
     environment:
      - DOCROOT=/var/www/web
      - PAGESPEED=Off
  
  
    db:
     image: mysql:5.6
     hostname: database
     volumes:
      - ./DB/:/var/lib/mysql/
      - ./db/:/var/tmp/db
     environment:
      - MYSQL_ROOT_PASSWORD=passwort
  </code></pre>