Skip to content

Commit

Permalink
fix(docker): update docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Mar 11, 2023
1 parent d23830d commit 4e21382
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Expand Up @@ -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" ]
8 changes: 3 additions & 5 deletions docker-compose.yml
Expand Up @@ -24,7 +24,7 @@ services:
networks:
- discord-tickets
ports:
- 8080:8080
- 8169:8169
volumes:
- tickets-bot:/usr/bot/user
tty: true
Expand All @@ -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:
Expand Down

0 comments on commit 4e21382

Please sign in to comment.