How to set up web server - the tutorial doesnt seem to work

A couple of weeks ago I deployed a simple httpd via container station, so I can post my YAML here (it’s using a virtual MAC address so your router DHCP would reassign the same IP on each build or reboot)

version: '3.9'
services:
  apache:
    image: httpd:latest
    container_name: my-apache-app
  network_mode: bridge
	mac_address: "02:42:ac:11:00:02"
    ports:
    - '9040:80'
    volumes:
    - /share/Foldername/subfolder:/usr/local/apache2/htdocs

Make sure

  • /share/Foldername/subfolder

actually exists (you can check that via SSH)