Add calibre and calibre-web to stack
This commit is contained in:
		
							
								
								
									
										2
									
								
								dns.yml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dns.yml
									
									
									
									
									
								
							@@ -19,6 +19,8 @@
 | 
				
			|||||||
        ip: "152.53.36.98"
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
      - name: "audio"
 | 
					      - name: "audio"
 | 
				
			||||||
        ip: "152.53.36.98"
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					      - name: "books"
 | 
				
			||||||
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
    - name: Add A records for subdomains
 | 
					    - name: Add A records for subdomains
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,6 +6,10 @@ pin.thesatelliteoflove.com {
 | 
				
			|||||||
    reverse_proxy pinry-pinry-1:80
 | 
					    reverse_proxy pinry-pinry-1:80
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					books.thesatelliteoflove.com {
 | 
				
			||||||
 | 
					    reverse_proxy calibre-web:8083
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
audio.thesatelliteoflove.com {
 | 
					audio.thesatelliteoflove.com {
 | 
				
			||||||
    reverse_proxy audiobookshelf-audiobookshelf-1:80
 | 
					    reverse_proxy audiobookshelf-audiobookshelf-1:80
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										19
									
								
								roles/docker/tasks/calibre.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								roles/docker/tasks/calibre.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					- name: make calibre directories
 | 
				
			||||||
 | 
					  ansible.builtin.file:
 | 
				
			||||||
 | 
					    path: "{{ item}}"
 | 
				
			||||||
 | 
					    state: directory
 | 
				
			||||||
 | 
					  loop:
 | 
				
			||||||
 | 
					    - /opt/stacks/calibre
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Template out the compose file
 | 
				
			||||||
 | 
					  ansible.builtin.template:
 | 
				
			||||||
 | 
					    src: calibre-compose.yml.j2
 | 
				
			||||||
 | 
					    dest: /opt/stacks/calibre/compose.yml
 | 
				
			||||||
 | 
					    owner: root
 | 
				
			||||||
 | 
					    mode: 644
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: deploy calibre stack
 | 
				
			||||||
 | 
					  community.docker.docker_compose_v2:
 | 
				
			||||||
 | 
					    project_src: /opt/stacks/calibre
 | 
				
			||||||
 | 
					    files:
 | 
				
			||||||
 | 
					    - compose.yml
 | 
				
			||||||
@@ -113,3 +113,7 @@
 | 
				
			|||||||
- name: Install audiobookshelf
 | 
					- name: Install audiobookshelf
 | 
				
			||||||
  import_tasks: audiobookshelf.yml
 | 
					  import_tasks: audiobookshelf.yml
 | 
				
			||||||
  tags: audiobookshelf
 | 
					  tags: audiobookshelf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Install calibre
 | 
				
			||||||
 | 
					  import_tasks: calibre.yml
 | 
				
			||||||
 | 
					  tags: calibre
 | 
				
			||||||
							
								
								
									
										24
									
								
								roles/docker/templates/calibre-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								roles/docker/templates/calibre-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  calibre-web:
 | 
				
			||||||
 | 
					    image: lscr.io/linuxserver/calibre-web:latest
 | 
				
			||||||
 | 
					    container_name: calibre-web
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - PUID=1000
 | 
				
			||||||
 | 
					      - PGID=1000
 | 
				
			||||||
 | 
					      - TZ=Etc/UTC
 | 
				
			||||||
 | 
					      - DOCKER_MODS=linuxserver/mods:universal-calibre #optional
 | 
				
			||||||
 | 
					      - OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - config:/config
 | 
				
			||||||
 | 
					      - books:/books
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  config:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  books:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					networks:
 | 
				
			||||||
 | 
					  default:
 | 
				
			||||||
 | 
					    external: true
 | 
				
			||||||
 | 
					    name: lava
 | 
				
			||||||
		Reference in New Issue
	
	Block a user