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
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:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal 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}"
|
||||
Reference in New Issue
Block a user