feat app 模块化启动
This commit is contained in:
11
Server/publish/scene/Dockerfile
Normal file
11
Server/publish/scene/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache tzdata && \
|
||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||
echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
COPY scene/ /app/
|
||||
RUN chmod 777 /app/server-scene
|
||||
|
||||
WORKDIR /app
|
||||
CMD ["./server-scene"]
|
||||
19
Server/publish/scene/config/config.prod.yaml
Normal file
19
Server/publish/scene/config/config.prod.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
app:
|
||||
name: "scene-prod"
|
||||
|
||||
log:
|
||||
debug: false
|
||||
level: "debug"
|
||||
maxSize: 10
|
||||
maxBackups: 100
|
||||
maxAge: 7
|
||||
|
||||
db:
|
||||
etcd:
|
||||
address: [ "172.18.28.0:2379" ]
|
||||
|
||||
serve:
|
||||
grpc:
|
||||
address: "172.18.28.0"
|
||||
port: 8504
|
||||
ttl: 20
|
||||
Reference in New Issue
Block a user