修改配置文件
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
fangjia-bkoff:
|
||||
image: 192.168.0.19:9012/fangjia-bkoff:latest
|
||||
container_name: fangjia-bkoff
|
||||
pull_policy: always
|
||||
ports:
|
||||
- "8081:8080"
|
||||
environment:
|
||||
JAVA_OPTS: >-
|
||||
-Dfangjia.overridePropertiesLocation=/home/goojia/goojiaconfig/fangjia-bkoff.properties
|
||||
-Dfs.mongo.port=27000
|
||||
-Denable.safeLog=true
|
||||
-Dlog4j.configuration=file:/home/goojia/webapps/ROOT/WEB-INF/classes/log4j_linux.xml
|
||||
extra_hosts:
|
||||
- "seaweed.db.fangjia.com:192.168.0.38"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./goojiaconfig/hosts:/etc/hosts
|
||||
- ./goojiaconfig:/home/goojia/goojiaconfig
|
||||
- ./logs/fangjia-bkoff:/home/goojia/logs
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/k8s/readiness"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
restart: unless-stopped
|
||||
@@ -0,0 +1,66 @@
|
||||
services:
|
||||
fangjia-coresite:
|
||||
image: 192.168.0.19:9012/fangjia-coresite:jenkins-fangjiamain-master-360
|
||||
container_name: fangjia-coresite
|
||||
pull_policy: always
|
||||
ports:
|
||||
- "8082:8080"
|
||||
environment:
|
||||
JAVA_OPTS: >-
|
||||
-Xmx4096m -Xms4096m -XX:MaxPermSize=256m
|
||||
-Dlog4j.configuration=file:/home/goojia/webapps/ROOT/WEB-INF/classes/log4j_linux.xml
|
||||
-Dfangjia.overridePropertiesLocation=/home/goojia/goojiaconfig/fangjia-coresite.properties
|
||||
-DMONGO.POOLSIZE=200
|
||||
-Dfangjia.disableKnowBaseCache=false
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 5g
|
||||
reservations:
|
||||
memory: 4g
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./goojiaconfig/hosts:/etc/hosts
|
||||
- ./goojiaconfig:/home/goojia/goojiaconfig
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 8080 || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
restart: unless-stopped
|
||||
|
||||
fangjia-static:
|
||||
image: 192.168.0.19:9012/fangjia-static:jenkins-fangjiamain-new_fjw-7
|
||||
container_name: fangjia-static
|
||||
pull_policy: always
|
||||
ports:
|
||||
- "8083:8080"
|
||||
environment:
|
||||
JAVA_OPTS: >-
|
||||
-Xmx2048m -XX:MaxPermSize=256m
|
||||
-Dfangjia.wartermarkimage=/home/goojia/goojiaconfig/warter-marker.png
|
||||
-Dfangjia.downloadTimeout=30000
|
||||
-Dfangjia.downloadPoolSize=4
|
||||
-Dlog4j.configuration=file:/home/goojia/webapps/ROOT/WEB-INF/classes/log4j_linux.xml
|
||||
-Dfs.mongo.port=27000
|
||||
-Dcapped.mongo.port=27000
|
||||
-Dfangjia.blackList=soufunimg.com,soufun.com,koofang.com,baixing.net
|
||||
-Dfangjia.important.category=district,shop,office,avatar,flash,user_house,upload
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2g
|
||||
reservations:
|
||||
memory: 1g
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./goojiaconfig/hosts:/etc/hosts
|
||||
- ./goojiaconfig:/home/goojia/goojiaconfig
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 8080 || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user