From 66b6af9f38299289bc38f6e452e01c403ff05d37 Mon Sep 17 00:00:00 2001 From: Shawn Kim Date: Fri, 14 Apr 2023 22:31:07 -0700 Subject: [PATCH] chore: change docker-compose yaml --- Makefile | 8 ++++---- .../01-proxy-to-all-lambda-functions/docker-compose.yml | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) rename docker-compose.yml => examples/01-proxy-to-all-lambda-functions/docker-compose.yml (68%) 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