ing
This commit is contained in:
parent
a4036598f4
commit
3d35034f24
|
@ -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_rpc /usr/local/overflow/bin/
|
COPY dist/member_gateway_rpc /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_rpc;
|
chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/member_gateway_rpc;
|
||||||
|
|
||||||
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_rpc
|
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o ./dist/member_gateway_rpc
|
||||||
|
|
||||||
docker build -t docker.loafle.net/overflow/member_gateway_rpc:1.0.0 .
|
docker build -t docker.loafle.net/overflow/member_gateway_rpc:1.0.0-SNAPSHOT .
|
||||||
|
|
||||||
docker push docker.loafle.net/overflow/member_gateway_rpc:1.0.0
|
docker push docker.loafle.net/overflow/member_gateway_rpc: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_rpc:
|
member_gateway_rpc:
|
||||||
image: docker.loafle.net/overflow/member_gateway_rpc:1.0.0
|
image: docker.loafle.net/overflow/member_gateway_rpc:1.0.0-SNAPSHOT
|
||||||
container_name: member_gateway_rpc
|
container_name: member_gateway_rpc
|
||||||
# volumes:
|
hostname: member_gateway_rpc
|
||||||
# - /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_rpc/var/overflow/logs:/var/overflow/logs
|
||||||
ports:
|
ports:
|
||||||
- "19090:80"
|
- 19090:80
|
Loading…
Reference in New Issue
Block a user