Last active
July 4, 2023 21:38
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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