ing
This commit is contained in:
parent
8af5463211
commit
0e55befe0a
|
@ -7,9 +7,7 @@ COPY _docker/config/* /etc/overflow/config/
|
||||||
COPY _docker/bin/* /usr/local/overflow/bin/
|
COPY _docker/bin/* /usr/local/overflow/bin/
|
||||||
COPY dist/member_gateway_rest /usr/local/overflow/bin/
|
COPY dist/member_gateway_rest /usr/local/overflow/bin/
|
||||||
|
|
||||||
RUN mkdir -p /etc/overflow/config; \
|
RUN mkdir -p /var/overflow/logs; \
|
||||||
mkdir -p /usr/local/overflow/bin; \
|
|
||||||
mkdir -p /var/overflow/logs; \
|
|
||||||
chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/member_gateway_rest;
|
chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/member_gateway_rest;
|
||||||
|
|
||||||
ENV TINI_VERSION='0.17.0'
|
ENV TINI_VERSION='0.17.0'
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
"external": {
|
"external": {
|
||||||
"grpc": {
|
"grpc": {
|
||||||
"network": "tcp4",
|
"network": "tcp4",
|
||||||
"address": "192.168.1.50:50006"
|
"address": "central:9111"
|
||||||
},
|
},
|
||||||
"redis": {
|
"redis": {
|
||||||
"network": "tcp4",
|
"network": "tcp4",
|
||||||
"address": "192.168.1.50:6379"
|
"address": "redis:6379"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -3,6 +3,6 @@
|
||||||
rm ./dist
|
rm ./dist
|
||||||
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o ./dist/member_gateway_rest
|
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o ./dist/member_gateway_rest
|
||||||
|
|
||||||
docker build -t docker.loafle.net/overflow/member_gateway_rest:1.0.0 .
|
docker build -t docker.loafle.net/overflow/member_gateway_rest:1.0.0-SNAPSHOT .
|
||||||
|
|
||||||
docker push docker.loafle.net/overflow/member_gateway_rest:1.0.0
|
docker push docker.loafle.net/overflow/member_gateway_rest:1.0.0-SNAPSHOT
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"external": {
|
"external": {
|
||||||
"grpc": {
|
"grpc": {
|
||||||
"network": "tcp4",
|
"network": "tcp4",
|
||||||
"address": "192.168.1.50:50006"
|
"address": "192.168.1.101:9111"
|
||||||
},
|
},
|
||||||
"redis": {
|
"redis": {
|
||||||
"network": "tcp4",
|
"network": "tcp4",
|
||||||
|
|
|
@ -2,10 +2,11 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
member_gateway_rest:
|
member_gateway_rest:
|
||||||
image: docker.loafle.net/overflow/member_gateway_rest:1.0.0
|
image: docker.loafle.net/overflow/member_gateway_rest:1.0.0-SNAPSHOT
|
||||||
container_name: member_gateway_rest
|
container_name: member_gateway_rest
|
||||||
# volumes:
|
hostname: member_gateway_rest
|
||||||
# - /service/redis/data/var/redis:/data
|
restart: always
|
||||||
# - /service/redis/data/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf
|
volumes:
|
||||||
|
- /service/overflow/data/member_gateway_rest/var/overflow/logs:/var/overflow/logs
|
||||||
ports:
|
ports:
|
||||||
- "19080:80"
|
- 19080:80
|
Loading…
Reference in New Issue
Block a user