Created
April 27, 2021 06:32
-
-
Save MiaoziYu/5241b84e8606966f2616be90971a321a to your computer and use it in GitHub Desktop.
docker-compose file
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
| 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