Skip to content

Commit 2f0a409

Browse files
committed
feature: change address run actrix server from 0.0.0.0 to listen all interfaces
1 parent 0568040 commit 2f0a409

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
FROM debian:latest
22

3-
#Params
4-
ARG DATABASE_URL
5-
ARG MOUNT_PATH
6-
ARG DISK_STORAGE_DIRECTORY
7-
8-
#Environment
9-
ENV DATABASE_URL=${DATABASE_URL}
10-
ENV MOUNT_PATH=${MOUNT_PATH}
11-
ENV DISK_STORAGE_DIRECTORY=${DISK_STORAGE_DIRECTORY}
3+
ENV DATABASE_URL="postgres://postgres:postgres@localhost/postgres"
4+
ENV MOUNT_PATH="/static"
5+
ENV DISK_STORAGE_DIRECTORY="/assets"
126

137
WORKDIR /app
148

document_manager/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async fn main() -> Result<()> {
7979
.service(delete_document)
8080
.service(find_documents)
8181
})
82-
.bind(("127.0.0.1", 8080))?
82+
.bind(("0.0.0.0", 8080))?
8383
.run()
8484
.await
8585
.with_context(|| "Error starting http server")

0 commit comments

Comments
 (0)