From aaa70c5428fe3c549a0fc15dbba4c99a790a080d Mon Sep 17 00:00:00 2001 From: Akbar Rahman Date: Fri, 26 Jan 2024 01:46:39 +0000 Subject: [PATCH] re add docker compose file --- .gitignore | 1 - docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index 93ce55a..518be01 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ todo env __pycache__ redis-data -docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e217ac5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: '3.9' + +services: + web: + hostname: heartbeats-web + build: + context: . + dockerfile: ./web/Dockerfile + restart: unless-stopped + ports: + - 8464:80 + environment: + - CLIENT_ID=${CLIENT_ID} + - CLIENT_SECRET=${CLIENT_SECRET} + - BASE_URL=http://localhost:8464 + + redis: + hostname: heartbeats-redis + image: redis + restart: unless-stopped + volumes: + - './redis-data:/data' + + populater: + hostname: heartbeats-populater + build: + context: . + dockerfile: ./populater/Dockerfile + restart: unless-stopped + environment: + - CLIENT_ID=${CLIENT_ID} + - CLIENT_SECRET=${CLIENT_SECRET}