Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat, chore]: upgrade bot with profanity filter, change hosting service #86

Merged
merged 3 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
build
charts
node_modules
.env

Dockerfile
.dockerignore
.dockerignore

# secrets
DEBUG_MODE.txt
DISCORD_TOKEN.txt
METAR_TOKEN.txt
NODE_ENV.txt
STATION_TOKEN.txt
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ node_modules

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# docker-compose secrets
/*.txt
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine as builder
FROM node:22-alpine3.19 as builder

WORKDIR /app
ENV NODE_ENV=development
Expand All @@ -12,7 +12,7 @@ COPY src/ src/
RUN npm run build:typescript


FROM node:16-alpine
FROM node:22-alpine3.19

WORKDIR /app
ENV NODE_ENV=production
Expand Down
35 changes: 35 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
services:
app:
restart: always
build:
dockerfile: Dockerfile
context: .
container_name: "heavy-division-bot"
secrets:
- debug_mode
- node_env
- discord_token
- metar_token
- station_token
- ban_appeal_url
environment:
DEBUG_MODE: /run/secrets/debug_mode
NODE_ENV: /run/secrets/node_env
DISCORD_TOKEN: /run/secrets/discord_token
METAR_TOKEN: /run/secrets/metar_token
STATION_TOKEN: /run/secrets/station_token
BAN_APPEAL_URL: /run/secrets/ban_appeal_url

secrets:
debug_mode:
file: ./DEBUG_MODE.txt
node_env:
file: ./NODE_ENV.txt
discord_token:
file: ./DISCORD_TOKEN.txt
metar_token:
file: ./METAR_TOKEN.txt
station_token:
file: ./STATION_TOKEN.txt
ban_appeal_url:
file: ./BAN_APPEAL_URL.txt
Loading
Loading