Sign inSign up

opositatest/nginx

By opositatest

•Updated 3 months ago

NGINX Reverse Proxy Sidecar Container

Image
0

10K+

opositatest/nginx repository overview

⁠Opositatest nginx

⁠Install

Build image:

docker built . -t [REPOSITORY:TAG]

This image depend on backend with name "php" and listen port "9000". If you try run this image without backend return fail.

Run image:

# Create network for dependency:
docker network create my-network

# Run Backend server:
docker run -d --net=my-network -e APP_ENV=dev --name php opositatest/php-fpm:latest

# Run Nginx server:
docker run --net=my-network -e APP_ENV=dev --name [CONTAINER_NAME] opositatest/nginx:latest

Test service Nginx with php-fpm backend:

docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit

Environment in .env:

  • APP_ENV=(dev|prod)

Tag summary

Content type

Image

Digest

sha256:b9486f487…

Size

60.2 MB

Last updated

3 months ago

docker pull opositatest/nginx