Use local-persist plugin as volume driver
This commit is contained in:
		
							parent
							
								
									3b00bfd19a
								
							
						
					
					
						commit
						4648c5fde3
					
				
							
								
								
									
										14
									
								
								README.md
								
								
								
								
							
							
						
						
									
										14
									
								
								README.md
								
								
								
								
							|  | @ -5,8 +5,7 @@ seedbox and personal media server. | ||||||
| ## Accessing a Service's Web Interface | ## Accessing a Service's Web Interface | ||||||
| Go to `x.hostname` where `x` is the service you want to access. | Go to `x.hostname` where `x` is the service you want to access. | ||||||
| Included services are: | Included services are: | ||||||
| - rtorrent | - deluge | ||||||
| - deluge (supposed to replace rtorrent someday, seems to be more compatible with sonarr) |  | ||||||
| - sonarr | - sonarr | ||||||
| - jackett (included in the sonarr image) | - jackett (included in the sonarr image) | ||||||
| - plex | - plex | ||||||
|  | @ -24,7 +23,18 @@ if you do this. | ||||||
| 
 | 
 | ||||||
| ## Dependencies | ## Dependencies | ||||||
| - [Docker](https://github.com/docker/docker) >= 1.13.0 | - [Docker](https://github.com/docker/docker) >= 1.13.0 | ||||||
|  |     + Install guidelines for Ubuntu 16.04: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 | ||||||
| - [Docker Compose](https://github.com/docker/compose) >=v1.10.0 | - [Docker Compose](https://github.com/docker/compose) >=v1.10.0 | ||||||
|  |     + Install guidelines for Ubuntu 16.04: https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-16-04 | ||||||
|  | - [local-persist Docker plugin](https://github.com/CWSpear/local-persist): installed directly on host (not in container). This is a volume plugin that extends the default local driver’s functionality by allowing you specify a mountpoint anywhere on the host, which enables the files to always persist, even if the volume is removed via `docker volume rm. Use *systemd* install for Ubuntu 16.04. | ||||||
|  | 
 | ||||||
|  | Before running, please create the volumes which will be statically mapped to the ones on the host: | ||||||
|  | ```sh | ||||||
|  | $ sudo su | ||||||
|  | # cd /; mkdir data; cd data; mkdir config; mkdir torrents | ||||||
|  | # exit | ||||||
|  | $ ls /data | ||||||
|  | ``` | ||||||
| 
 | 
 | ||||||
| ## Running | ## Running | ||||||
| ```sh | ```sh | ||||||
|  |  | ||||||
|  | @ -5,9 +5,13 @@ networks: | ||||||
| 
 | 
 | ||||||
| volumes: | volumes: | ||||||
|     config: |     config: | ||||||
|         driver: local |         driver: local-persist | ||||||
|  |         driver_opts: | ||||||
|  |             mountpoint: /data/config | ||||||
|     torrents: |     torrents: | ||||||
|         driver: local |         driver: local-persist | ||||||
|  |         driver_opts: | ||||||
|  |             mountpoint: /data/torrents | ||||||
| 
 | 
 | ||||||
| services: | services: | ||||||
|     frontend: |     frontend: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue