Skip to content

Commit

Permalink
Share tgt conf dir to container
Browse files Browse the repository at this point in the history
  • Loading branch information
leonwanghui committed Oct 23, 2018
1 parent 417546d commit bf9811e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker-compose.yml
Expand Up @@ -13,17 +13,20 @@ services:
osdsdock:
image: 'opensdsio/opensds-dock:latest'
tty: true
network_mode: "host"
privileged: true
volumes:
- /etc/opensds:/etc/opensds
- /etc/ceph:/etc/ceph
- /dev/:/dev/
- /etc/tgt:/etc/tgt:shared
- /run/:/run/:shared
- /dev/:/dev/
- /etc/localtime:/etc/localtime:ro
- /lib/modules:/lib/modules:ro
depends_on:
- osdsdb
ports:
- 3260:3260
network_mode: "host"
restart: on-failure
command: /bin/bash -c '/usr/sbin/tgtd && /usr/bin/osdsdock -logtostderr'
osdsdb:
Expand Down

0 comments on commit bf9811e

Please sign in to comment.