add volumes to sample compose scripts
This commit is contained in:
parent
58f11a3b61
commit
4f954c5858
@ -46,6 +46,8 @@ services:
|
|||||||
APPEND_DATE: true
|
APPEND_DATE: true
|
||||||
networks:
|
networks:
|
||||||
- nastest
|
- nastest
|
||||||
|
volumes:
|
||||||
|
- "backup:/backup"
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
driver: local
|
driver: local
|
||||||
@ -57,6 +59,7 @@ networks:
|
|||||||
```
|
```
|
||||||
#### Backup to NAS
|
#### Backup to NAS
|
||||||
For increased data security, it's recommended to store database backups on the NAS where they can take advantage of increased storage, automatic snapshots, & further backups.
|
For increased data security, it's recommended to store database backups on the NAS where they can take advantage of increased storage, automatic snapshots, & further backups.
|
||||||
|
The below example is identical to the one above, except `APPEND_DATE` has been set to `false` & the volume definition for `backup` has been modified.
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> If you intend to keep regular snapshots of this backup on the file server, you should set APPEND_DATE to false
|
> If you intend to keep regular snapshots of this backup on the file server, you should set APPEND_DATE to false
|
||||||
```
|
```
|
||||||
@ -80,6 +83,8 @@ services:
|
|||||||
APPEND_DATE: false
|
APPEND_DATE: false
|
||||||
networks:
|
networks:
|
||||||
- nastest
|
- nastest
|
||||||
|
volumes:
|
||||||
|
- "backup:/backup"
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
driver: local
|
driver: local
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user