From 5d49497e8124a480b2158b695924ed2bf99284ff Mon Sep 17 00:00:00 2001 From: VKTB <45173816+VKTB@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:31:08 +0000 Subject: [PATCH] Createa docker compose file #133 --- Dockerfile | 1 - docker-compose.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 811e75c..eb4c29f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,6 @@ WORKDIR /app COPY --from=base /app/requirements-*.txt ./ COPY scigateway_auth/ scigateway_auth/ COPY maintenance/ maintenance/ -COPY keys/ keys/ RUN --mount=type=cache,target=/root/.cache \ set -eux; \ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..eda9380 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +services: + scigateway-auth: + container_name: scigateway-auth + build: + context: . + target: dev + volumes: + - ./scigateway_auth:/app/scigateway_auth + - ./keys:/app/keys + - ./maintenance/maintenance.json:/app/maintenance/maintenance.json + - ./maintenance/scheduled_maintenance.json:/app/maintenance/scheduled_maintenance.json + ports: + - 8000:8000 + restart: on-failure