ansible/roles/docker/tasks/services/gitea.yml

27 lines
528 B
YAML

---
- name: gitea network
docker_network:
name: gitea
- name: gitea app volume
docker_volume:
name: gitea
- name: gitea container
docker_container:
name: gitea
image: gitea/gitea:latest
restart_policy: unless-stopped
networks:
- name: gitea
- name: external_services
volumes:
- gitea:/data
published_ports:
- "22:22"
env:
VIRTUAL_HOST: "{{ gitea.domain }}"
LETSENCRYPT_HOST: "{{ gitea.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"