Skip to content

Commit

Permalink
#deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslacerdacl committed Sep 21, 2023
1 parent 1834137 commit 2a79fac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# OS
.DS_Store

# production
/bin

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2a79fac

Please sign in to comment.