Skip to content
/ overseerr Public

Commit 5e5ba40

Browse files
authoredDec 18, 2020
fix: change default internal port to 5055 (#389)
1 parent 36b2b4f commit 5e5ba40

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed
 

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ COPY --from=BUILD_IMAGE /app/node_modules ./node_modules
2525

2626
CMD yarn start
2727

28-
EXPOSE 3000
28+
EXPOSE 5055

‎README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Currently, Overseerr is only distributed through Docker images. If you have Dock
5454
docker run -d \
5555
-e LOG_LEVEL=info \
5656
-e TZ=Asia/Tokyo \
57-
-p 5055:3000 \
57+
-p 5055:5055 \
5858
-v /path/to/appdata/config:/app/config \
5959
--restart unless-stopped \
6060
sctx/overseerr
@@ -76,7 +76,7 @@ After running Overseerr for the first time, configure it by visiting the web UI
7676

7777
## API Documentation
7878

79-
Full API documentation will soon be published automatically and available outside of running the app. Currently, you can access the API docs by running Overseerr locally and visiting http://localhost:3000/api-docs
79+
Full API documentation will soon be published automatically and available outside of running the app. Currently, you can access the API docs by running Overseerr locally and visiting http://localhost:5055/api-docs
8080

8181
## Community
8282

@@ -124,4 +124,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
124124

125125
<!-- markdownlint-enable -->
126126
<!-- prettier-ignore-end -->
127+
127128
<!-- ALL-CONTRIBUTORS-LIST:END -->

‎docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
context: .
66
dockerfile: Dockerfile.local
77
ports:
8-
- 3000:3000
8+
- 5055:5055
99
volumes:
1010
- .:/app:rw,cached
1111
- /app/node_modules

‎server/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ app
100100
}
101101
);
102102

103-
const port = Number(process.env.PORT) || 3000;
103+
const port = Number(process.env.PORT) || 5055;
104104
const host = process.env.HOST;
105105
if (host) {
106106
server.listen(port, host, () => {

‎src/pages/_app.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ CoreApp.getInitialProps = async (initialProps) => {
114114
if (ctx.res) {
115115
// Check if app is initialized and redirect if necessary
116116
const response = await axios.get<{ initialized: boolean }>(
117-
`http://localhost:${process.env.PORT || 3000}/api/v1/settings/public`
117+
`http://localhost:${process.env.PORT || 5055}/api/v1/settings/public`
118118
);
119119

120120
const initialized = response.data.initialized;
@@ -130,7 +130,7 @@ CoreApp.getInitialProps = async (initialProps) => {
130130
try {
131131
// Attempt to get the user by running a request to the local api
132132
const response = await axios.get<User>(
133-
`http://localhost:${process.env.PORT || 3000}/api/v1/auth/me`,
133+
`http://localhost:${process.env.PORT || 5055}/api/v1/auth/me`,
134134
{ headers: ctx.req ? { cookie: ctx.req.headers.cookie } : undefined }
135135
);
136136
user = response.data;

‎src/pages/movie/[movieId]/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ MoviePage.getInitialProps = async (ctx) => {
1717
if (ctx.req) {
1818
const cookies = parseCookies(ctx);
1919
const response = await axios.get<MovieDetailsType>(
20-
`http://localhost:${process.env.PORT || 3000}/api/v1/movie/${
20+
`http://localhost:${process.env.PORT || 5055}/api/v1/movie/${
2121
ctx.query.movieId
2222
}${cookies.locale ? `?language=${cookies.locale}` : ''}`,
2323
{

‎src/pages/tv/[tvId]/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ TvPage.getInitialProps = async (ctx) => {
1717
if (ctx.req) {
1818
const cookies = parseCookies(ctx);
1919
const response = await axios.get<TvDetailsType>(
20-
`http://localhost:${process.env.PORT || 3000}/api/v1/tv/${
20+
`http://localhost:${process.env.PORT || 5055}/api/v1/tv/${
2121
ctx.query.tvId
2222
}${cookies.locale ? `?language=${cookies.locale}` : ''}`,
2323
{

0 commit comments

Comments
 (0)
Please sign in to comment.