Added naruto host and gitea to docker
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
40
README.md
40
README.md
@@ -17,34 +17,36 @@ usermod -a -G sudo tudattr
|
||||
Backup for aya01 and raspberry are in a backblaze b2, which gets encrypted on the clientside by rclone.
|
||||
but first of all we need to create the buckets and provide ansible with the needed information.
|
||||
|
||||
When creating your own rclone config the `password` and `password2` entries have to be passed though `rclone obscure` like this:
|
||||
First we need to create a api key for backblaze, consists of an id and a key.
|
||||
we use clone to sync to backblaze.
|
||||
we can encrypt the data with rclone before sending it to backblaze.
|
||||
to do this we need two buckets:
|
||||
- b2
|
||||
- crypt
|
||||
on each device that should be backupped.
|
||||
|
||||
``` sh
|
||||
echo "$PASSWORD" | rclone obscure -
|
||||
```
|
||||
we create these by running `rclone config` and creating one [remote] b2 config and a [secret] crypt config. The crypt config should have two passwords that we store in our secrets file.
|
||||
|
||||
`
|
||||
## Vault
|
||||
- Create vault with: `ansible-vault create secrets.yml`
|
||||
- Create entry in vault with: `ansible-vault edit secrets.yml`
|
||||
- Add following entries:
|
||||
- `vault_pi_tudattr_password: <YOURPASSWORD>` (password you've setup on the device)
|
||||
- `vault_aya01_tudattr_password: <YOURPASSWORD>` (password you've setup on the device)
|
||||
- `vault_pihole_password: <YOURPASSWORD>` (arbitrary password you want to log in with)
|
||||
- `vault_mysql_root_password: <YOURPASSWORD>` (arbitrary password, used internally)
|
||||
- `vault_mysql_user_password: <YOURPASSWORD>` (arbitrary password, used internally)
|
||||
- `vault_ddns_tudattrdev_password: <YOURPASSWORD>` (password needed for ddns, refer to [here](https://www.namecheap.com/support/knowledgebase/article.aspx/595/11/how-do-i-enable-dynamic-dns-for-a-domain/))
|
||||
- `vault_ddns_borgland_password: <YOURPASSWORD>` (password needed for ddns, refer to [here](https://www.namecheap.com/support/knowledgebase/article.aspx/595/11/how-do-i-enable-dynamic-dns-for-a-domain/))
|
||||
- Add following entries: TODO
|
||||
|
||||
## Docker
|
||||
To add new docker containers to the docker role you need to add the following and replace `service` with the name of your service:
|
||||
|
||||
- Add relevent vars to `group_vars/all/vars.yaml`:
|
||||
```yaml
|
||||
service_port: "19999" # Exposed port
|
||||
service_config: "{{ docker_dir }}/service/" # config folder or your dir
|
||||
service_data: "{{ docker_data_dir }}/service/" # data folder or your dir (only works on aya01)
|
||||
service:
|
||||
host: "service"
|
||||
ports:
|
||||
http: "19999"
|
||||
volumes:
|
||||
config: "{{ docker_dir }}/service/" # config folder or your dir
|
||||
data: "{{ docker_data_dir }}/service/" # data folder or your dir (only works on aya01)
|
||||
```
|
||||
|
||||
- Create necessary directories for service in the docker role `roles/docker/tasks/service.yaml`
|
||||
```yaml
|
||||
- name: Create service dirs
|
||||
@@ -52,11 +54,11 @@ service_data: "{{ docker_data_dir }}/service/" # data folder or your dir (only w
|
||||
path: "{{ item }}"
|
||||
owner: 1000
|
||||
group: 1000
|
||||
mode: '777'
|
||||
mode: '775'
|
||||
state: directory
|
||||
loop:
|
||||
- "{{ service_config }}"
|
||||
- "{{ service_data }}"
|
||||
- "{{ service.volumes.config }}"
|
||||
- "{{ service.volumes.data }}"
|
||||
|
||||
# optional:
|
||||
# - name: Place service config
|
||||
@@ -90,8 +92,6 @@ service_data: "{{ docker_data_dir }}/service/" # data folder or your dir (only w
|
||||
- "{{service_lib}}:/var/lib/service"
|
||||
- "{{service_cache}}:/var/cache/service"
|
||||
```
|
||||
### Qbittorrent/Openvpn
|
||||
You'll need to add a openvpn config to =./roles/docker/templates/aya01/qbittorrentvpn/config/=
|
||||
|
||||
## Server
|
||||
- Install Debian (debian-11.5.0-amd64-netinst.iso) on remote system
|
||||
|
||||
Reference in New Issue
Block a user