This commit is contained in:
crusader 2018-06-14 16:16:04 +09:00
parent a4036598f4
commit 3d35034f24
5 changed files with 12 additions and 13 deletions

View File

@ -7,9 +7,7 @@ COPY _docker/config/* /etc/overflow/config/
COPY _docker/bin/* /usr/local/overflow/bin/
COPY dist/member_gateway_rpc /usr/local/overflow/bin/
RUN mkdir -p /etc/overflow/config; \
mkdir -p /usr/local/overflow/bin; \
mkdir -p /var/overflow/logs; \
RUN mkdir -p /var/overflow/logs; \
chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/member_gateway_rpc;
ENV TINI_VERSION='0.17.0'

View File

@ -19,11 +19,11 @@
"external": {
"grpc": {
"network": "tcp4",
"address": "192.168.1.50:50006"
"address": "central:9111"
},
"redis": {
"network": "tcp4",
"address": "192.168.1.50:6379"
"address": "redis:6379"
}
}
}

View File

@ -3,6 +3,6 @@
rm ./dist
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

View File

@ -19,7 +19,7 @@
"external": {
"grpc": {
"network": "tcp4",
"address": "192.168.1.50:50006"
"address": "192.168.1.101:9111"
},
"redis": {
"network": "tcp4",

View File

@ -2,10 +2,11 @@ version: "3"
services:
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
# volumes:
# - /service/redis/data/var/redis:/data
# - /service/redis/data/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf
hostname: member_gateway_rpc
restart: always
volumes:
- /service/overflow/data/member_gateway_rpc/var/overflow/logs:/var/overflow/logs
ports:
- "19090:80"
- 19090:80