-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I reworked the docker files and added docker support for the new config system. The old config system is no longer working
- Loading branch information
Showing
12 changed files
with
69 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.vscode | ||
.husky | ||
.github | ||
.cspell | ||
.env | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,3 +140,8 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
|
||
# Docker | ||
database | ||
docker-compose.local.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,16 @@ | ||
FROM node:16 | ||
|
||
LABEL maintainer="me@jqshuv.xyz" | ||
LABEL org.opencontainers.image.source https://github.com/ZynerOrg/xyter | ||
LABEL org.opencontainers.image.description "An multi-purpose discord.js bot." | ||
LABEL org.opencontainers.image.licenses=GPL-3.0-only | ||
|
||
LABEL maintainer="xyter@zyner.org" | ||
|
||
WORKDIR /app | ||
|
||
LABEL maintainer="me@jqshuv.xyz" | ||
LABEL org.opencontainers.image.source https://github.com/ZynerOrg/xyter | ||
LABEL org.opencontainers.image.description "An multi-purpose discord.js bot." | ||
LABEL org.opencontainers.image.licenses=GPL-3.0-only | ||
|
||
COPY package* . | ||
RUN npm install | ||
|
||
COPY . . | ||
RUN mv src/config_docker src/config | ||
|
||
RUN npx tsc | ||
|
||
RUN npx tsc -v > /app/tsc.log | ||
RUN npm -v > /app/npm.log | ||
RUN node -v > /app/node.log | ||
RUN npx -y tsc | ||
|
||
WORKDIR /app/build | ||
|
||
CMD [ "npx", "nodemon" ] | ||
CMD [ "node", "." ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
app: | ||
depends_on: | ||
- mongodb | ||
build: . | ||
restart: unless-stopped | ||
environment: | ||
- DISCORD_TOKEN=YOUR TOKEN | ||
- DISCORD_CLIENT_ID=YOUR CLIENT ID | ||
- DISCORD_GUILD_ID=YOUR GUILD ID | ||
### LEAVE THIS AS IT IS! ### | ||
- MONGO_URL=mongodb://mongodb:27017/xyter?retryWrites=true&w=majority | ||
############################ | ||
- ENCRYPTION_ALGORITHM=aes-256-ctr | ||
- ENCRYPTION_SECRET=A RANDOM STRING WITH LENGTH OF 32 | ||
- EMEBD_COLOR_SUCCESS=#22bb33 | ||
- EMBED_COLOR_WAIT=#f0ad4e | ||
- EMBED_COLOR_ERROR=#bb2124 | ||
- EMBED_FOOTER_TEXT=https://github.com/ZynerOrg/xyter | ||
- EMBED_FOOTER_ICON=https://github.com/ZynerOrg.png | ||
- LOG_LEVEL=silly | ||
- REPUTATION_TIMEOUT=86400 | ||
- BOT_HOSTER_NAME=Zyner | ||
- BOT_HOSTER_URL=https://xyter.zyner.org/customization/change-hoster | ||
- NODE_ENV=production | ||
stdin_open: true | ||
tty: true | ||
mongodb: | ||
image: mongo:4.2.21 | ||
restart: unless-stopped | ||
volumes: | ||
- ./logs:/app/build/logs | ||
- ./database:/data/db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.