From 7e512671a8f36df6eee5ae81e06367f09c3e112b Mon Sep 17 00:00:00 2001 From: jabuxas Date: Tue, 3 Sep 2024 21:54:21 -0300 Subject: [PATCH] ops: update docker files --- Dockerfile | 2 +- docker-compose.yml | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) 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