community-catalog/templates/portworx/0/docker-compose.yml
Alwex 0647f8edce Internal DNS fix
Because container have host networking it wouldn't be able to access rancher internal DNS server so access to the ETCD by DNS/FQDN name wouldn't work.
2017-08-22 12:55:20 -07:00

27 lines
745 B
YAML

portworx:
labels:
io.rancher.container.dns: 'true'
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.global: 'true'
io.rancher.container.pull_image: 'always'
image: portworx/px-dev:edge
container_name: px
ipc: host
net: host
privileged: true
environment:
CLUSTER_ID: ${cluster_id}
KVDB: ${kvdb}
HDR_DIR: ${header_dir}
USE_DISKS: ${use_disks}
volumes:
- /dev:/dev
- ${header_dir}:${header_dir}
- /run/docker/plugins:/run/docker/plugins
- /var/lib/osd:/var/lib/osd:shared
- /etc/pwx:/etc/pwx
- /opt/pwx/bin:/export_bin:shared
- /var/run/docker.sock:/var/run/docker.sock
- /var/cores:/var/cores
command: -c ${cluster_id} -k ${kvdb} ${use_disks}