From 2a79facd3cb318ef881368ca9cea753e5ad59e26 Mon Sep 17 00:00:00 2001 From: Lucas Lacerda Date: Thu, 21 Sep 2023 17:00:39 -0300 Subject: [PATCH] #deploy --- .gitignore | 3 +++ Makefile | 6 +++--- docker-compose.yml | 10 +++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index bde4942..98b3c9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# OS +.DS_Store + # production /bin diff --git a/Makefile b/Makefile index feb9fbe..72c7076 100644 --- a/Makefile +++ b/Makefile @@ -5,16 +5,16 @@ build: rm -rf bin && go build -o ./bin/ ./src/*.go lint: - golangci-lint run ./src + golangci-lint run ./src/... script-run: go run ./src/main.go docker-build: - docker build -t go-api:latest . -f Dockerfile.local + docker build -t go-script:latest . -f Dockerfile.local docker-up-script: - docker-compose up -d go-api --build --force-recreate + docker-compose up -d go-script --build --force-recreate docker-down: docker-compose down --rmi all \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e9262cc..d195c6e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,19 +1,19 @@ version: '3' services: - go-api: - container_name: go-api + go-script: + container_name: go-script build: context: . dockerfile: ./Dockerfile.local restart: on-failure networks: - - go-api-network + - go-script-network volumes: postgres: networks: - go-api-network: - name: go-api + go-script-network: + name: go-script driver: bridge