virli/tutorial/devops/tools-gitea-ansible.md

38 lines
916 B
Markdown
Raw Normal View History

2022-02-24 19:43:43 +00:00
Votre playbook ressemblera à quelque chose comme ça :
2021-11-19 23:00:30 +00:00
<div lang="en-US">
```yaml
2022-02-24 19:43:43 +00:00
- name: Create a volume for storing repositories
docker_volume:
name: gitea-data
- name: launch gitea container
2021-11-19 23:00:30 +00:00
docker_container:
name: gitea
image: "gitea/gitea:{{ version }}"
volumes:
2022-02-24 19:43:43 +00:00
- gitea-data:/data
2021-11-19 23:00:30 +00:00
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
state: started
restart_policy: unless-stopped
memory: 1G
memory_swap: 1G
networks:
2022-11-27 09:54:57 +00:00
- name: gitea_net
2021-11-19 23:00:30 +00:00
published_ports:
- "2222:22"
- "3000:3000"
env:
RUN_MODE: "prod"
DOMAIN: "gitea"
SSH_DOMAIN: "gitea"
INSTALL_LOCK: "true"
2022-11-27 09:56:11 +00:00
GITEA__security__SECRET_KEY: "{{ secret_key }}"
GITEA__security__INTERNAL_TOKEN: "{{ internal_token }}"
2021-11-19 23:00:30 +00:00
```
</div>
2022-02-24 19:43:43 +00:00
2022-11-13 11:40:18 +00:00
Vous trouverez plus d'infos sur cette page :
<https://docs.gitea.io/en-us/install-with-docker/>.