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:
|
|
|
|
|
- name: gitea
|
|
|
|
|
published_ports:
|
|
|
|
|
- "2222:22"
|
|
|
|
|
- "3000:3000"
|
|
|
|
|
env:
|
|
|
|
|
RUN_MODE: "prod"
|
|
|
|
|
DOMAIN: "gitea"
|
|
|
|
|
SSH_DOMAIN: "gitea"
|
|
|
|
|
INSTALL_LOCK: "true"
|
|
|
|
|
SECRET_KEY: "{{ secret_key }}"
|
|
|
|
|
```
|
|
|
|
|
</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/>.
|