refactor storage and setup shared backup directory
This commit is contained in:
+10
-13
@@ -1,25 +1,16 @@
|
||||
gitea_version: 1.24.3
|
||||
|
||||
gitea_partition: |-
|
||||
{{
|
||||
hard_disk__partitions | dict2items | selectattr(
|
||||
'value', 'contains', 'gitea'
|
||||
) | map(attribute='key') | first
|
||||
}}
|
||||
|
||||
gitea_database:
|
||||
db_name: gitea
|
||||
db_user: gitea
|
||||
db_password: gitea
|
||||
|
||||
gitea:
|
||||
partition: "{{ gitea_partition }}"
|
||||
database:
|
||||
dockercompose:
|
||||
name: arcodange_factory
|
||||
networks:
|
||||
gitea:
|
||||
name: arcodange_factory_gitea
|
||||
postgres:
|
||||
name: arcodange_factory_postgres
|
||||
external: true
|
||||
services:
|
||||
gitea:
|
||||
@@ -45,12 +36,18 @@ gitea:
|
||||
GITEA__server__SSH_PORT: 2222
|
||||
GITEA__server__SSH_DOMAIN: "{{ lookup('dig', groups.gitea[0]) }}"
|
||||
GITEA__server__SSH_LISTEN_PORT: 22
|
||||
GITEA_server__DOMAIN: localhost
|
||||
GITEA_server__HTTP_PORT: 3000
|
||||
GITEA_server__ROOT_URL: https://gitea.arcodange.duckdns.org/
|
||||
GITEA_server__START_SSH_SERVER: true
|
||||
GITEA_server__OFFLINE_MODE: true
|
||||
GITEA_service__DISABLE_REGISTRATION: true
|
||||
networks:
|
||||
- gitea
|
||||
- postgres
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:22"
|
||||
volumes:
|
||||
- /arcodange/{{gitea_partition}}/gitea/data:/data
|
||||
- /home/pi/arcodange/docker_composes/gitea/data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
@@ -1,21 +0,0 @@
|
||||
# to add/mount a partitiion, use the gparted utility to create it beforehand witht the matching name/label
|
||||
hard_disk__partitions:
|
||||
nfs: []
|
||||
gitea_data:
|
||||
- gitea
|
||||
pg_data:
|
||||
- postgres
|
||||
|
||||
hard_disk__applications:
|
||||
postgres: "{{ postgres }}"
|
||||
gitea: "{{ gitea }}"
|
||||
|
||||
hard_disk__postgres_databases:
|
||||
gitea: "{{ gitea_database }}"
|
||||
webapp:
|
||||
db_name: webapp
|
||||
|
||||
hard_disk__nfs:
|
||||
server_ip: "{{ ansible_host }}"
|
||||
ks_namespace: kube-system
|
||||
export_directory: /arcodange/nfs
|
||||
+3
-10
@@ -1,15 +1,8 @@
|
||||
postgres_partition: |-
|
||||
{{
|
||||
hard_disk__partitions | dict2items | selectattr(
|
||||
'value', 'contains', 'postgres'
|
||||
) | map(attribute='key') | first
|
||||
}}
|
||||
postgres:
|
||||
partition: "{{ postgres_partition }}"
|
||||
dockercompose:
|
||||
name: arcodange_factory
|
||||
networks:
|
||||
gitea:
|
||||
postgres:
|
||||
external: false
|
||||
services:
|
||||
postgres:
|
||||
@@ -21,11 +14,11 @@ postgres:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: postgres
|
||||
networks:
|
||||
- gitea
|
||||
- postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- /arcodange/{{postgres_partition}}/postgres/data:/var/lib/postgresql/data
|
||||
- /home/pi/arcodange/docker_composes/postgres/data:/var/lib/postgresql/data
|
||||
|
||||
pgbouncer:
|
||||
auth_user: &pgbouncer_auth pgbouncer_auth
|
||||
@@ -31,17 +31,13 @@ local:
|
||||
pi2:
|
||||
pi3:
|
||||
|
||||
hard_disk:
|
||||
hosts:
|
||||
pi2: # 4To toshiba external hard drive (/dev/sda)
|
||||
|
||||
postgres:
|
||||
children:
|
||||
hard_disk:
|
||||
hosts:
|
||||
pi2:
|
||||
|
||||
gitea:
|
||||
children:
|
||||
hard_disk:
|
||||
postgres:
|
||||
|
||||
all:
|
||||
children:
|
||||
|
||||
Reference in New Issue
Block a user