Feat(ktm-booking): Initial commit
Some checks failed
ktm-booking-bot/ktm-booking-bot/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2022-09-27 02:50:07 +08:00
commit 7cf10b07d4
44 changed files with 4569 additions and 0 deletions

29
docker-compose.yml Normal file
View File

@@ -0,0 +1,29 @@
version: '3'
services:
#######################################
# KTM Train Booking Bot
#######################################
ktm-train-bot:
restart: always
build:
context: .
dockerfile: docker/Dockerfile
environment:
- "TZ=Asia/Singapore"
- "LOGGER_WEBHOOK_URL=${LOGGER_WEBHOOK_URL}"
ports:
- "127.0.0.1:8007:8000"
entrypoint: ["/bin/bash", "-c", "/app/server 2>&1 | /app/messenger --webhook --url $LOGGER_WEBHOOK_URL"]
#######################################
# Postgres server
#######################################
postgres-ktm-train-bot:
image: postgres
restart: always
volumes:
- "./_docker_mnt/_postgres_data:/var/lib/postgresql/data"
environment:
- "POSTGRES_USER=${DB_USER}"
- "POSTGRES_PASSWORD=${DB_PASS}"
- "POSTGRES_DB=${DB_NAME}"