Move gitea to ZFS
This commit is contained in:
parent
bc5d6d512b
commit
8d2c6dfb68
2 changed files with 6 additions and 13 deletions
|
@ -17,8 +17,8 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea:/data
|
- /mnt/tank/app-data/gitea:/data
|
||||||
- ./repos:/data/git
|
- /mnt/tank/files/repositories:/data/git
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ services:
|
||||||
image: postgres:12-alpine
|
image: postgres:12-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres:/var/lib/postgresql/data
|
- /mnt/tank/dbs/postgres/gitea:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=gitea
|
- POSTGRES_PASSWORD=gitea
|
||||||
- POSTGRES_USER=gitea
|
- POSTGRES_USER=gitea
|
||||||
|
@ -50,7 +50,7 @@ services:
|
||||||
image: theorangeone/git-mirror:latest
|
image: theorangeone/git-mirror:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./repositories.toml:/app/repositories.toml:ro
|
- /mnt/tank/app-data/git-mirror/repositories.toml:/app/repositories.toml:ro
|
||||||
- /scratch/git-mirror:/app/repos
|
- /scratch/git-mirror:/app/repos
|
||||||
environment:
|
environment:
|
||||||
- GITHUB_TOKEN={{ gitea.git_mirror_github_token }}
|
- GITHUB_TOKEN={{ gitea.git_mirror_github_token }}
|
||||||
|
|
|
@ -9,13 +9,6 @@
|
||||||
mode: "{{ docker_compose_directory_mask }}"
|
mode: "{{ docker_compose_directory_mask }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Create gitea config directory
|
|
||||||
file:
|
|
||||||
path: /opt/gitea/gitea/gitea/conf
|
|
||||||
state: directory
|
|
||||||
mode: "{{ docker_compose_directory_mask }}"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install gitea compose file
|
- name: Install gitea compose file
|
||||||
template:
|
template:
|
||||||
src: files/gitea/docker-compose.yml
|
src: files/gitea/docker-compose.yml
|
||||||
|
@ -29,7 +22,7 @@
|
||||||
- name: Install gitea config file
|
- name: Install gitea config file
|
||||||
template:
|
template:
|
||||||
src: files/gitea/app.ini
|
src: files/gitea/app.ini
|
||||||
dest: /opt/gitea/gitea/gitea/conf/app.ini
|
dest: /mnt/tank/app-data/gitea/gitea/conf/app.ini
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
register: gitea_config_file
|
register: gitea_config_file
|
||||||
|
@ -38,7 +31,7 @@
|
||||||
- name: Install git-mirror config file
|
- name: Install git-mirror config file
|
||||||
template:
|
template:
|
||||||
src: files/gitea/git-mirror-repositories.toml
|
src: files/gitea/git-mirror-repositories.toml
|
||||||
dest: /opt/gitea/repositories.toml
|
dest: /mnt/tank/app-data/git-mirror/repositories.toml
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
register: git_mirror_config_file
|
register: git_mirror_config_file
|
||||||
|
|
Loading…
Reference in a new issue