# vim:ft=ansible: - name: docker deploy gitea docker_container: name: gitea image: gitea/gitea:1 env: USER_UID: "1002" USER_GID: "1002" GITEA__database_DB_TYPE: postgres GITEA__database_HOST: 10.0.0.2:5432 GITEA__database_NAME: gitea-desultd GITEA__database_USER: gitea-desultd GITEA__database_PASSWD: "{{ secret_gitea_db_pass }}" ports: - 127.0.0.1:2222:22 networks: - name: web aliases: [ "gitea" ] volumes: - /data/gitea/data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - /var/lib/gitea/.ssh:/data/git/.ssh tags: [ docker, gitea ]