Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

AC34/docker-v3-php-nginx-composer

Repository files navigation

LICENSE docker-version

note

Don't get confused about Docker version.

About This repository:

This is an examaple of docker-compose usecase with php-fpm, nginx and composer altogether.

Hot to use:

1)use -f option and tell docker-compose.run.yml (or other compose files)

2)don't forget to "up"

e.g. docker-compose -f docker-compose.run.yml up

3)accessing the page

localhost:8080

from your browser.

Points:

3)Composer

When dealing with composer image and composer commands, always use CMD instead of RUN.

COPY

directive is not used for

composer install

in Dockerfile, files are shared by

volumes

directive in compose file.

4)nginx directory.

./code/index/

is used for nginx's root directory. Any files that are on this directory are EXPOSED to public. In the wild web world, some people are actually exposing their WHOLE APP directory by nginx(which absolutely is not recommended).

About

Sample docker-compose settings for php nginx and composer altogether.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published