40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
|
|
Create user and group
|
|
---------------------
|
|
Credentials -> Local Users -> Add
|
|
Full Name: www-sthome
|
|
Username: www-sthome
|
|
Disable Password: <select>
|
|
Email: <leave blank>
|
|
UID: (note)
|
|
Create New Primary Group: <select>
|
|
Create Home Directory: <uncheck>
|
|
Samba Authentication: <uncheck>
|
|
Save
|
|
|
|
www-sthome UID: 3064
|
|
www-sthome GID: 3065
|
|
|
|
Create datasets
|
|
---------------
|
|
# In Truenas shell:
|
|
# list datasets
|
|
zfs list | grep -i "docker.*www-sthome"
|
|
# create following dataset if not present
|
|
zfs create SSD1/docker/data/www-sthome
|
|
zfs create SSD1/docker/data/www-sthome/config
|
|
zfs create SSD1/docker/data/www-sthome/appdata
|
|
zfs create SSD1/docker/data/www-sthome/logs
|
|
chown -R www-sthome:www-sthome /mnt/SSD1/docker/data/www-sthome
|
|
|
|
Create stacks folder
|
|
---------------------
|
|
mkdir -p /mnt/SSD1/docker/stacks/www-sthome
|
|
|
|
Copy folder to docker stacks
|
|
----------------------------
|
|
# In Windows cmd shell in www-sthome folder, enter:
|
|
./cp2nas 192.168.2.2
|
|
# or
|
|
pscp -P 22 -r stacks/*.* root@192.168.2.2:/mnt/SSD1/docker/stacks/www-sthome/
|
|
# This should copy stacks folder to /mnt/SSD1/docker/stacks/www-sthome |