Skip to content

Instantly share code, notes, and snippets.

@Swiss-Mac-User
Last active July 4, 2023 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swiss-Mac-User/4d86eb943803eea5c25009716e68438d to your computer and use it in GitHub Desktop.
Save Swiss-Mac-User/4d86eb943803eea5c25009716e68438d to your computer and use it in GitHub Desktop.
Docker Compose YAML configuration for static webpages (supports macOS on Apple Silicon ARM Macs)
services:
apache-php:
platform: linux/x86_64
image: php:8.1-apache
container_name: my-website
restart: unless-stopped
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html
hostname: mywebsite
domainname: mywebsite.local
ports:
- 80:80
expose:
- 80
volumes:
- ./path/to/my-html-files:/var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment