re add docker compose file

This commit is contained in:
Akbar Rahman 2024-01-26 01:46:39 +00:00
parent 45945732c9
commit aaa70c5428
Signed by: alvierahman90
GPG Key ID: 6217899F07CA2BDF
2 changed files with 32 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,4 +3,3 @@ todo
env env
__pycache__ __pycache__
redis-data redis-data
docker-compose.yml

32
docker-compose.yml Normal file
View File

@ -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}