diff --git a/Dockerfile b/Dockerfile index e6dc150..5bfc011 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.23 WORKDIR /app -# COPY go.mod go.sum ./ +COPY go.mod go.sum ./ COPY go.mod ./ RUN go mod download diff --git a/docker-compose.yml b/docker-compose.yml index d4c0761..b33383e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,10 @@ services: paste: - environment: - URL: "localhost:58080" - AUTH_USERNAME: "admin" - AUTH_PASSWORD: "admin" build: . ports: - - "58080:8080" + - "58080:8999" volumes: - ./files:/app/files - - ./.key:/app/.key restart: unless-stopped + env_file: + - .env