Skip to content

Commit

Permalink
upgrade bot with profanity filter, change hosting service
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajimayoshi committed Jul 12, 2024
1 parent 12850e4 commit a7c11f8
Show file tree
Hide file tree
Showing 14 changed files with 380 additions and 77 deletions.
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

0 comments on commit a7c11f8

Please sign in to comment.