This commit is contained in:
crusader 2018-06-14 16:12:46 +09:00
parent 8af5463211
commit 0e55befe0a
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_rest /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_rest;
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_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

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_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
# 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_rest
restart: always
volumes:
- /service/overflow/data/member_gateway_rest/var/overflow/logs:/var/overflow/logs
ports:
- "19080:80"
- 19080:80