fix: expose port fix to 38080

This commit is contained in:
xuthus5 2023-10-22 01:49:37 +08:00
parent 873e8dfd2b
commit 06ed1f232d
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
4 changed files with 5 additions and 5 deletions

View File

@ -9,5 +9,5 @@ COPY . /app
COPY --from=0 dist /app/webui/dist
RUN go mod tidy && go build .
EXPOSE 38081
EXPOSE 38080
ENTRYPOINT [ "./pastebin", "api" ]

View File

@ -1,5 +1,5 @@
server-name: pastebin
server-listen: 127.0.0.1:38082
server-listen: 0.0.0.0:38080
environment: dev
db:
dbname: data/pastebin.db

View File

@ -1,5 +1,5 @@
server-name: pastebin
server-listen: 0.0.0.0:38082
server-listen: 0.0.0.0:38080
environment: prod
db:
dbname: data/pastebin.db

View File

@ -6,6 +6,6 @@ services:
container_name: pastebin
restart: always
volumes:
- /data/containers/pastebin/pastebin.db:/app/pastebin.db
- /data/containers/pastebin:/app/data
ports:
- "30002:38082"
- "30002:38080"