services: apache: image: httpd:2.4 container_name: my-httpd restart: always ports: - 8888:80 volumes: - ./htdocs:/usr/local/apache2/htdocs/ - ./httpd.conf:/usr/local/apache2/conf/httpd.conf