Skip to content

Commit ae3f989

Browse files
committed
all: revise docker config
1 parent 1c54e0f commit ae3f989

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: clean
44
go build -o $(NAME) -mod vendor
55
./$(NAME) -conf configs/config.yaml
66
build:
7-
docker build -t $(NAME):$(VERSION) -t $(NAME):latest -f docker/Dockerfile .
7+
docker build -t $(NAME):latest -f docker/Dockerfile .
88
up:
99
docker-compose -f docker/deploy.yml up -d
1010
down:

configs/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# by a GPLv3 license that can be found in the LICENSE file.
44

55
---
6-
addr: localhost:6789
6+
addr: localhost:80
77
mode: debug
8-
static: public
8+
static: public

configs/docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# by a GPLv3 license that can be found in the LICENSE file.
44

55
---
6-
addr: 0.0.0.0:6789
6+
addr: 0.0.0.0:80
77
mode: release
8-
static: public
8+
static: public

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# All rights reserved. Use of this source code is governed
33
# by a GPLv3 license that can be found in the LICENSE file.
44

5-
FROM golang:1.16.3
5+
FROM golang:1.17.3
66
WORKDIR /app
77
ADD . /app
88
# required for runtime/cgo

docker/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ services:
1212
image: gossa:latest
1313
cap_add:
1414
- SYS_PTRACE # for debugging
15-
ports:
16-
- "6789:6789"
15+
networks:
16+
- traefik_proxy
17+
networks:
18+
traefik_proxy:
19+
external: true

0 commit comments

Comments
 (0)