Compare commits
No commits in common. "3e065051b903b4eb648b4a8282881b06321ab71d" and "1213b5991ab6c333733a4872808b0634bc437b02" have entirely different histories.
3e065051b9
...
1213b5991a
@ -6,15 +6,6 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Setup DNS server for docker in `/etc/docker/daemon.json`:
|
|
||||||
|
|
||||||
```config
|
|
||||||
{
|
|
||||||
"data-root": "/home/docker",
|
|
||||||
"dns": ["1.1.1.1", "8.8.8.8", "8.8.4.4"]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Once DNS are properly setup on host:
|
Once DNS are properly setup on host:
|
||||||
|
|
||||||
1. Create OVH token : <https://www.ovh.com/auth/api/createToken>
|
1. Create OVH token : <https://www.ovh.com/auth/api/createToken>
|
||||||
|
|||||||
@ -15,7 +15,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
|
|
||||||
COMPOSE_PATH = Path('docker-compose.yml')
|
COMPOSE_PATH = Path('docker-compose.yml')
|
||||||
BACKUP_PATH = Path('./data/bkp')
|
BACKUP_PATH = Path('/mnt/storage/docker-bkp')
|
||||||
VOLUME_PREFIX = 'docker_'
|
VOLUME_PREFIX = 'docker_'
|
||||||
|
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ def backup(volume):
|
|||||||
archive_name = f'{date_string}_{volume}.tar'
|
archive_name = f'{date_string}_{volume}.tar'
|
||||||
print(f'backup volume {volume} to {BACKUP_PATH}/{archive_name}')
|
print(f'backup volume {volume} to {BACKUP_PATH}/{archive_name}')
|
||||||
|
|
||||||
subprocess.run(f'docker run --rm --volume {VOLUME_PREFIX}{volume}:/data --volume {BACKUP_PATH.resolve()}:/bkp ubuntu tar -cf /bkp/{archive_name} -C /data .'.split())
|
subprocess.run(f'docker run --rm --volume {VOLUME_PREFIX}{volume}:/data --volume {BACKUP_PATH}:/bkp ubuntu tar -cf /bkp/{archive_name} -C /data .'.split())
|
||||||
|
|
||||||
|
|
||||||
def run_docker_compose(cmd):
|
def run_docker_compose(cmd):
|
||||||
|
|||||||
@ -49,6 +49,7 @@ services:
|
|||||||
- ddclient-cache:/run/ddclient-cache
|
- ddclient-cache:/run/ddclient-cache
|
||||||
#- ddclient-cache:/var/cache/ddclient
|
#- ddclient-cache:/var/cache/ddclient
|
||||||
|
|
||||||
|
|
||||||
money:
|
money:
|
||||||
image: ihatemoney/ihatemoney
|
image: ihatemoney/ihatemoney
|
||||||
container_name: money
|
container_name: money
|
||||||
@ -70,9 +71,8 @@ services:
|
|||||||
FILE__PASS: /run/secrets/transmission-pw
|
FILE__PASS: /run/secrets/transmission-pw
|
||||||
volumes:
|
volumes:
|
||||||
- transmission-config:/config
|
- transmission-config:/config
|
||||||
- /storage/@media/download:/downloads
|
- /mnt/storage/download:/downloads
|
||||||
- /storage/@media/download/torrent:/watch
|
- /mnt/storage/download/torrent:/watch
|
||||||
- ./transmission/eodl.sh:/eodl.sh
|
|
||||||
ports:
|
ports:
|
||||||
- 9091:9091
|
- 9091:9091
|
||||||
- 51413:51413
|
- 51413:51413
|
||||||
@ -100,35 +100,6 @@ services:
|
|||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
#jackett:
|
|
||||||
# image: lscr.io/linuxserver/jackett:latest
|
|
||||||
# container_name: jackett
|
|
||||||
# environment:
|
|
||||||
# <<: *common-environment
|
|
||||||
# AUTO_UPDATE: true #optional
|
|
||||||
# RUN_OPTS: #optional
|
|
||||||
# volumes:
|
|
||||||
# - jackett-config:/config
|
|
||||||
# - /mnt/storage/media/dl:/downloads
|
|
||||||
# ports:
|
|
||||||
# - 9117:9117
|
|
||||||
# restart: unless-stopped
|
|
||||||
|
|
||||||
|
|
||||||
#sonarr:
|
|
||||||
# image: lscr.io/linuxserver/sonarr:latest
|
|
||||||
# container_name: sonarr
|
|
||||||
# environment: *common-environment
|
|
||||||
# volumes:
|
|
||||||
# - sonarr-config:/config
|
|
||||||
# - /mnt/storage/media:/data
|
|
||||||
# #- /mnt/storage/video/Films/:/movies
|
|
||||||
# #- /mnt/storage/download/:/downloads
|
|
||||||
# ports:
|
|
||||||
# - 8989:8989
|
|
||||||
# restart: unless-stopped
|
|
||||||
|
|
||||||
|
|
||||||
syncthing:
|
syncthing:
|
||||||
image: lscr.io/linuxserver/syncthing:latest
|
image: lscr.io/linuxserver/syncthing:latest
|
||||||
container_name: syncthing
|
container_name: syncthing
|
||||||
@ -136,10 +107,11 @@ services:
|
|||||||
environment: *common-environment
|
environment: *common-environment
|
||||||
volumes:
|
volumes:
|
||||||
- ./syncthing:/config
|
- ./syncthing:/config
|
||||||
- sync-notes:/notes
|
- /mnt/storage/music/Florent:/music
|
||||||
- sync-audrey:/audrey-sync
|
- /mnt/storage/audrey-sync:/audrey-sync
|
||||||
- ./data/signal-bkp:/signal-bkp
|
- /mnt/storage/audrey-projets:/audrey-projets
|
||||||
- ./data/audrey-projets:/audrey-projets
|
- /home/florent/syncthing/notes:/notes
|
||||||
|
- /home/florent/syncthing/signal-bkp:/signal-bkp
|
||||||
ports:
|
ports:
|
||||||
- 22000:22000/tcp
|
- 22000:22000/tcp
|
||||||
- 22000:22000/udp
|
- 22000:22000/udp
|
||||||
@ -374,6 +346,7 @@ services:
|
|||||||
- gitea-db-root-pw
|
- gitea-db-root-pw
|
||||||
- gitea-db-pw
|
- gitea-db-pw
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
money-data:
|
money-data:
|
||||||
lychee-db:
|
lychee-db:
|
||||||
@ -392,10 +365,7 @@ volumes:
|
|||||||
zotero-sync-data:
|
zotero-sync-data:
|
||||||
gitea-data:
|
gitea-data:
|
||||||
gitea-db:
|
gitea-db:
|
||||||
sonarr-config:
|
|
||||||
jackett-config:
|
|
||||||
sync-audrey:
|
|
||||||
sync-notes:
|
|
||||||
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user