Skip to content

Instantly share code, notes, and snippets.

@mbootsman
Created November 24, 2022 09:28
Show Gist options
  • Save mbootsman/c9919ce0358eafeaef05f7c52dc627ef to your computer and use it in GitHub Desktop.
Save mbootsman/c9919ce0358eafeaef05f7c52dc627ef to your computer and use it in GitHub Desktop.
docker-compose file
# 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