Last active
September 22, 2022 18:55
-
-
Save elvinlari/3b5f38b7a9b07085d2cd759429be440d to your computer and use it in GitHub Desktop.
Nginx web server service.
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
nginx: | |
build: | |
context: ./docker | |
dockerfile: nginx.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
restart: unless-stopped | |
container_name: nginx | |
ports: | |
- 8000:8000 | |
volumes: | |
- ./src:/var/www/html | |
- .env:/var/www/html/.env | |
depends_on: | |
- php | |
- redis | |
- mysql | |
- laravel-queue | |
- laravel-cron | |
- phpmyadmin | |
- mailhog | |
networks: | |
- laravel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment