diff --git a/Dockerfile b/Dockerfile index 7b39b98..e2a3588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/config_dev.yaml b/config_dev.yaml index 1676574..13f0552 100644 --- a/config_dev.yaml +++ b/config_dev.yaml @@ -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 diff --git a/config_prod.yaml b/config_prod.yaml index 093e7d6..b7a43a6 100644 --- a/config_prod.yaml +++ b/config_prod.yaml @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 172029d..655f856 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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"