Skip to content

Commit

Permalink
all: revise docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Nov 11, 2021
1 parent 1c54e0f commit ae3f989
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: clean
go build -o $(NAME) -mod vendor
./$(NAME) -conf configs/config.yaml
build:
docker build -t $(NAME):$(VERSION) -t $(NAME):latest -f docker/Dockerfile .
docker build -t $(NAME):latest -f docker/Dockerfile .
up:
docker-compose -f docker/deploy.yml up -d
down:
Expand Down
4 changes: 2 additions & 2 deletions configs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# by a GPLv3 license that can be found in the LICENSE file.

---
addr: localhost:6789
addr: localhost:80
mode: debug
static: public
static: public
4 changes: 2 additions & 2 deletions configs/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# by a GPLv3 license that can be found in the LICENSE file.

---
addr: 0.0.0.0:6789
addr: 0.0.0.0:80
mode: release
static: public
static: public
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# All rights reserved. Use of this source code is governed
# by a GPLv3 license that can be found in the LICENSE file.

FROM golang:1.16.3
FROM golang:1.17.3
WORKDIR /app
ADD . /app
# required for runtime/cgo
Expand Down
7 changes: 5 additions & 2 deletions docker/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ services:
image: gossa:latest
cap_add:
- SYS_PTRACE # for debugging
ports:
- "6789:6789"
networks:
- traefik_proxy
networks:
traefik_proxy:
external: true

0 comments on commit ae3f989

Please sign in to comment.