move to /srv
This commit is contained in:
parent
5331d25c4a
commit
5bf6d7acbc
13 changed files with 44 additions and 46 deletions
|
@ -16,7 +16,7 @@ services:
|
|||
- traefik
|
||||
volumes:
|
||||
- /data/forgejo:/data
|
||||
- /apps/forgejo/conf:/data/gitea/conf
|
||||
- /srv/forgejo/conf:/data/gitea/conf
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
labels:
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
- name: Create app directory
|
||||
file:
|
||||
path: /apps/forgejo
|
||||
path: /srv/forgejo
|
||||
state: directory
|
||||
- name: Copy Docker Compose script
|
||||
copy:
|
||||
src: "{{ role_path }}/files/docker-compose.yml"
|
||||
dest: /apps/forgejo/docker-compose.yml
|
||||
dest: /srv/forgejo/docker-compose.yml
|
||||
- name: Create data directory
|
||||
file:
|
||||
path: /data/forgejo
|
||||
|
@ -14,18 +14,18 @@
|
|||
group: 1000
|
||||
- name: Copy conf directory
|
||||
file:
|
||||
path: /apps/forgejo/conf
|
||||
path: /srv/forgejo/conf
|
||||
state: directory
|
||||
owner: 1000
|
||||
group: 1000
|
||||
- name: Copy app.ini
|
||||
template:
|
||||
src: "{{ role_path }}/templates/app.ini"
|
||||
dest: /apps/forgejo/conf/app.ini
|
||||
dest: /srv/forgejo/conf/app.ini
|
||||
register: config
|
||||
- name: Start the Docker Compose
|
||||
community.docker.docker_compose:
|
||||
project_src: /apps/forgejo
|
||||
docker_compose:
|
||||
project_src: /srv/forgejo
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
restarted: "{{ config.changed }}"
|
||||
|
|
Reference in a new issue