fix(docker): update docker files

This commit is contained in:
Isaac 2023-03-11 15:03:11 +00:00
parent d23830d9a3
commit 4e21382e1e
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 6 additions and 9 deletions

View File

@ -10,15 +10,14 @@ COPY package.json pnpm-lock.yaml ./
COPY --link scripts scripts
# install dependencies, CI=true to skip pre/postinstall scripts
RUN CI=true pnpm install --prod --frozen-lockfile
RUN chmod +x /usr/bot/scripts/start.sh
COPY --link . .
FROM node:18-alpine AS runner
ENV NODE_ENV=production \
HTTP_HOST=0.0.0.0 \
HTTP_PORT=80 \
SETTINGS_HOST=127.0.0.1 \
SETTINGS_PORT=8169
HTTP_PORT=80
WORKDIR /usr/bot
COPY --from=builder /build ./
EXPOSE ${HTTP_PORT}
ENTRYPOINT [ "/usr/bot/scripts/start.sh" ]
ENTRYPOINT [ "/usr/bot/scripts/start.sh" ]

View File

@ -24,7 +24,7 @@ services:
networks:
- discord-tickets
ports:
- 8080:8080
- 8169:8169
volumes:
- tickets-bot:/usr/bot/user
tty: true
@ -37,15 +37,13 @@ services:
DISCORD_TOKEN: # required
ENCRYPTION_KEY: # required
DB_PROVIDER: mysql
HTTP_EXTERNAL: http://127.0.0.1:8080 # change this to your server's external IP (or domain)
HTTP_EXTERNAL: http://127.0.0.1:8169 # change this to your server's external IP (or domain)
HTTP_HOST: 0.0.0.0
HTTP_PORT: 8080
HTTP_PORT: 8169
HTTP_TRUST_PROXY: false # set to true if you're using a reverse proxy
OVERRIDE_ARCHIVE: null
PUBLIC_BOT: false
PUBLISH_COMMANDS: false
SETTINGS_PORT: 8169
SETTINGS_HOST: 127.0.0.1
SUPER: 319467558166069248 # optionally add `,youruseridhere`
networks: