No more volumes

This commit is contained in:
WilliamMiceli
2018-06-18 16:38:35 -04:00
parent fa937b5d55
commit 619a70b99c
3 changed files with 44 additions and 52 deletions

View File

@@ -2,15 +2,19 @@ version: '2'
services:
che-server:
image: eclipse/che-server:latest
container_name: eclipse-che
dns:
- 1.1.1.1
- 1.0.0.1
environment:
- CHE_HOST=${HOST_IP}
- CHE_PORT=${CHE_PORT}
labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
ports:
- "8080:8080"
- ${CHE_PORT}":8080"
restart: on-failure
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DATA_VOLUME}:/data:nocopy
- ${REPO_VOLUME}:/repo:nocopy
volumes_driver: rancher-nfs
- ${STORAGE_BASE_DIR}${DATA_DIR}:/data
- ${STORAGE_BASE_DIR}${REPO_DIR}:/repo