Initial commit
This commit is contained in:
56
group_vars/gitea/vars.yml
Normal file
56
group_vars/gitea/vars.yml
Normal file
@@ -0,0 +1,56 @@
|
||||
docker_compose_project_name: gitea
|
||||
docker_compose_data_dir: /data/compose/gitea # default: "/srv/compose/{{ docker_compose_project_name }}"
|
||||
docker_compose_dotenv: |
|
||||
GITEA__database__DB_TYPE=postgres
|
||||
GITEA__database__HOST=db:5432
|
||||
GITEA__database__NAME=gitea
|
||||
GITEA__database__USER=gitea
|
||||
GITEA__database__PASSWD={{ db_password }}
|
||||
GITEA__server__PROTOCOL=https
|
||||
GITEA__server__ROOT_URL=https://gitea.homedungeon.xyz:443/
|
||||
GITEA__server__HTTP_PORT=443
|
||||
GITEA__server__CERT_FILE=/etc/gitea/cert.pem
|
||||
GITEA__server__KEY_FILE=/etc/gitea/key.pem
|
||||
GITEA__server__REDIRECT_OTHER_PORT=true
|
||||
GITEA__server__PORT_TO_REDIRECT=443
|
||||
POSTGRES_USER=gitea
|
||||
POSTGRES_PASSWORD={{ db_password }}
|
||||
POSTGRES_DB=gitea
|
||||
docker_compose_definition:
|
||||
services:
|
||||
server:
|
||||
image: docker.gitea.com/gitea:1.25.4-rootless
|
||||
env_file: .env
|
||||
restart: always
|
||||
user: "1002"
|
||||
volumes:
|
||||
- ./data:/var/lib/gitea
|
||||
- ./config:/etc/gitea
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "443:443"
|
||||
- "2222:2222"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: docker.io/library/postgres:14
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
compose_dirs:
|
||||
- name: "data"
|
||||
path: "{{ docker_compose_data_dir }}/data"
|
||||
mode: "0755"
|
||||
owner: "reaper"
|
||||
- name: "config"
|
||||
path: "{{ docker_compose_data_dir }}/config"
|
||||
mode: "0700"
|
||||
owner: "reaper"
|
||||
- name: "postgres"
|
||||
path: "{{ docker_compose_data_dir }}/postgres"
|
||||
mode: "0700"
|
||||
owner: "999"
|
||||
docker_group: "reaper"
|
||||
Reference in New Issue
Block a user