version: '2' services: apache2: image: ubuntu/apache2 ports: - '8085:80' environment: # ALLOW_EMPTY_PASSWORD is recommended only for development. - TZ=UTC volumes: - '/home/primerp/website:/var/www/html' - './my-httpd.conf:/usr/local/apache2/conf/httpd.conf' # command: # - sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf #- a2enmod rewrite #- rc-service apache2 restart