Created
November 24, 2022 09:28
-
-
Save mbootsman/c9919ce0358eafeaef05f7c52dc627ef to your computer and use it in GitHub Desktop.
docker-compose file
This file contains 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
# based on https://hub.docker.com/r/sparanoid/php-fpm | |
version: '3' | |
services: | |
nginx: | |
image: nginx:alpine | |
restart: always | |
ports: | |
- 8080:80 | |
# Enable 443 on production | |
# - 443:443 | |
depends_on: | |
- php | |
volumes: | |
- ./php/src:/var/www/html | |
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro | |
php: | |
image: sparanoid/php-fpm:8-latest | |
restart: always | |
volumes: | |
- ./php/src:/var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment