diff --git a/.build/prod/api.Dockerfile b/.build/prod/api.Dockerfile index 817a07b..d0b3b6e 100644 --- a/.build/prod/api.Dockerfile +++ b/.build/prod/api.Dockerfile @@ -1,6 +1,6 @@ FROM python:3.9.20-slim-bookworm -RUN pip install python-dotenv flask gunicorn +RUN pip install python-dotenv flask gunicorn requests RUN apt-get update && apt-get install -y curl jq && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/compose.yml b/compose.yml index cbcacfd..c1fa307 100644 --- a/compose.yml +++ b/compose.yml @@ -1,12 +1,26 @@ services: keepalive: env_file: .env - image: git.shihaam.dev/shihaam/mib-payment-verify/keepalive - cookieserver: + build: + context: . + dockerfile: .build/prod/keepalive.Dockerfile + environment: + - COOKIE_SERVER=http://cookieserver:5000 + depends_on: + - cookieserver + cookieserver: env_file: .env - image: git.shihaam.dev/shihaam/mib-payment-verify/cookieserver + build: + context: . + dockerfile: .build/prod/cookieserver.Dockerfile api: env_file: .env - image: git.shihaam.dev/shihaam/mib-payment-verify/api + build: + context: . + dockerfile: .build/prod/api.Dockerfile + environment: + - COOKIE_SERVER=http://cookieserver:5000 + depends_on: + - cookieserver ports: - 5000:5000 diff --git a/mib-images.tar.gz b/mib-images.tar.gz new file mode 100644 index 0000000..22d2e80 Binary files /dev/null and b/mib-images.tar.gz differ