28 lines
902 B
YAML
28 lines
902 B
YAML
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
|