mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
fix(docker): update docker files
This commit is contained in:
parent
d23830d9a3
commit
4e21382e1e
@ -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" ]
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user