feedback from rawmind0

use allinone stack name for join address
add version in image tag
This commit is contained in:
atung 2017-02-24 11:17:50 -08:00
parent 2810931305
commit ad5f0dd462

View File

@ -1,15 +1,12 @@
allinone: allinone:
image: neuvector/allinone image: neuvector/allinone:0.9
container_name: neuvector.allinone container_name: neuvector.allinone
restart: always restart: always
privileged: true privileged: true
environment: environment:
- affinity:com.myself.name!=neuvector - affinity:com.myself.name!=neuvector
- CLUSTER_JOIN_ADDR=${ALLINONE_ADDRESS} - CLUSTER_JOIN_ADDR=allinone
ports: ports:
- 18300:18300
- 18301:18301
- 18301:18301/udp
- 8443:8443 - 8443:8443
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
@ -20,16 +17,13 @@ allinone:
io.rancher.scheduler.affinity:host_label: ${NV_ALLINONE_LABEL} io.rancher.scheduler.affinity:host_label: ${NV_ALLINONE_LABEL}
io.rancher.container.hostname_override: container_name io.rancher.container.hostname_override: container_name
enforcer: enforcer:
image: neuvector/enforcer image: neuvector/enforcer:0.9
container_name: neuvector.enforcer container_name: neuvector.enforcer
restart: always restart: always
privileged: true privileged: true
environment: environment:
- affinity:com.myself.name!=neuvector - affinity:com.myself.name!=neuvector
- CLUSTER_JOIN_ADDR=${ALLINONE_ADDRESS} - CLUSTER_JOIN_ADDR=allinone
ports:
- 18301:18301
- 18301:18301/udp
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /proc:/host/proc:ro - /proc:/host/proc:ro