composes/botkeeping.yml

32 lines
773 B
YAML

name: botkeeping
secrets:
MYSQL_USER_PASSWORD:
file: .secrets/MYSQL_USER_PASSWORD
services:
ui:
image: git.jusemon.com/jusemon/botkeeping-ui:1.0.0
restart: unless-stopped
api:
image: git.jusemon.com/jusemon/botkeeping-api:1.0.0
restart: unless-stopped
secrets:
- MYSQL_USER_PASSWORD
environment:
NODE_ENV: "production"
HOST: "0.0.0.0"
PORT: 3000
API_VERSION: 1
ALLOWED_ORIGINS: "https://botkeeping.jusemon.com"
DB_HOST: "db-mariadb-1"
DB_DATABASE: "botkeeping_jsm"
DB_USER: "jusemon"
DB_PASSWORD__FILE: /run/secrets/MYSQL_USER_PASSWORD
DB_PORT: 3306
REDIS_HOST: "redis-app-1"
REDIS_PORT: 6379
networks:
default:
name: default-network
external: true