diff --git a/Makefile b/Makefile index 21f28ce..46d830d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -start: - docker-compose up -d +start-01: + docker-compose -f examples/01-proxy-to-all-lambda-functions/docker-compose.yml up -d ps: docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}" @@ -7,8 +7,8 @@ ps: watch: watch 'docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"' -down: - docker-compose down +down-01: + docker-compose -f examples/01-proxy-to-all-lambda-functions/docker-compose.yml down clean: docker kill $$(docker ps -q) 2> /dev/null || true diff --git a/docker-compose.yml b/examples/01-proxy-to-all-lambda-functions/docker-compose.yml similarity index 68% rename from docker-compose.yml rename to examples/01-proxy-to-all-lambda-functions/docker-compose.yml index 758bcd2..5c6b687 100644 --- a/docker-compose.yml +++ b/examples/01-proxy-to-all-lambda-functions/docker-compose.yml @@ -5,17 +5,16 @@ services: container_name: nginx_lambda image: nginx_lambda build: - context: ./ + context: ../../ # Enable this when using NGINX OSS dockerfile: ./docker/Dockerfile.oss # Enable this when using NGINX Plus # dockerfile: ./docker/Dockerfile.plus volumes: - - ./examples/01-proxy-to-all-lambda-functions/:/etc/nginx/conf.d/ - - ./core:/etc/nginx/lambda + - ../../examples/01-proxy-to-all-lambda-functions/:/etc/nginx/conf.d/ + - ../../core:/etc/nginx/lambda ports: - "80:80" - - "8080:8080" env_file: - - settings.test + - ../../settings.test