Docker Community Forums

Share and learn in the Docker community.

Docker toolbox on windows, cannot resolve virtualhost

docker

(Azhariilham) #1

Hi, can anyone help me to configure docker compose with virtualhost, i have no any idea why its still not working even if i put the hostname into C:/Windows/System32/drivers/etc/hosts

version: '2'
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile.development
    links:
      - mysql
      - solr
      - memcached
    ports:
      - "8000:80"
      - "8443:443"
    volumes:
      - ./myapps/public/:/myapps/public/
      - ./:/docker/
    cap_add:
      - SYS_PTRACE
    privileged: true
    env_file:
      - etc/environment.yml
    environment:
      - VIRTUAL_HOST=local.indo.front.net
      - VIRTUAL_PORT=80