Skip to content

Instantly share code, notes, and snippets.

@MiaoziYu
Created April 27, 2021 06:32
Show Gist options
  • Select an option

  • Save MiaoziYu/5241b84e8606966f2616be90971a321a to your computer and use it in GitHub Desktop.

Select an option

Save MiaoziYu/5241b84e8606966f2616be90971a321a to your computer and use it in GitHub Desktop.
docker-compose file
version: '3.7'
services:
php-fpm:
build:
context: .
dockerfile: ./build/docker/php-fpm/Dockerfile
container_name: white-frontend-fpm
tty: true
volumes:
- type: bind
source: .
target: /var/www/html
networks:
- white-frontend
nginx:
image: nginx:1.17.9-alpine
container_name: white-frontend-nginx
ports:
- "9001:8080"
tty: true
volumes:
- type: bind
source: .
target: /var/www/html
- ./build/docker/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- white-frontend
networks:
white-frontend:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment