diff --git a/Dockerfile b/Dockerfile index 562705e..7cd2482 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file +ENTRYPOINT [ "/usr/bot/scripts/start.sh" ] diff --git a/docker-compose.yml b/docker-compose.yml index dbb27fb..3d4c2d4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: