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

View File

@ -24,7 +24,7 @@ services:
networks: networks:
- discord-tickets - discord-tickets
ports: ports:
- 8080:8080 - 8169:8169
volumes: volumes:
- tickets-bot:/usr/bot/user - tickets-bot:/usr/bot/user
tty: true tty: true
@ -37,15 +37,13 @@ services:
DISCORD_TOKEN: # required DISCORD_TOKEN: # required
ENCRYPTION_KEY: # required ENCRYPTION_KEY: # required
DB_PROVIDER: mysql 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_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 HTTP_TRUST_PROXY: false # set to true if you're using a reverse proxy
OVERRIDE_ARCHIVE: null OVERRIDE_ARCHIVE: null
PUBLIC_BOT: false PUBLIC_BOT: false
PUBLISH_COMMANDS: false PUBLISH_COMMANDS: false
SETTINGS_PORT: 8169
SETTINGS_HOST: 127.0.0.1
SUPER: 319467558166069248 # optionally add `,youruseridhere` SUPER: 319467558166069248 # optionally add `,youruseridhere`
networks: networks: