Only 1 instance per host allowed
This commit is contained in:
@@ -2,7 +2,6 @@ version: '2'
|
|||||||
services:
|
services:
|
||||||
che-server:
|
che-server:
|
||||||
image: eclipse/che-server:latest
|
image: eclipse/che-server:latest
|
||||||
container_name: eclipse-che
|
|
||||||
dns:
|
dns:
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
@@ -11,6 +10,7 @@ services:
|
|||||||
- CHE_PORT=${CHE_PORT}
|
- CHE_PORT=${CHE_PORT}
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
|
io.rancher.container.hostname_override: eclipse-che
|
||||||
ports:
|
ports:
|
||||||
- "${CHE_PORT}:8080"
|
- "${CHE_PORT}:8080"
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|||||||
Reference in New Issue
Block a user