version: '3' # Generated by ansible for site {{ site.url }} # On network {{ site.subnet_cidr_address }}: # - site (gitea) at {{ site.subnet_site_ip }} services: site: # build: site image: gitea/gitea:{{ gitea.version }} restart: always environment: APP_NAME: "Gitea: git with a cup of coffee" DOMAIN: "{{ site.url }}" SSH_DOMAIN: "{{ site.url }}" ROOL_URL: "https://{{ site.url }}/" USER_UID: "{{ site.user_uid }}" USER_GID: "{{ site.user_gid }}" DB_TYPE: mysql DB_HOST: "{{ site.subnet_gateway_ip }}" DB_USER: "{{ site.mysql_username }}" DB_PASSWD: "{{ site.mysql_password }}" DB_NAME: "{{ site.mysql_database }}" volumes: - "{{ site_data_path }}:/data" - "/home/git/.ssh:/data/git/.ssh" - "/etc/timezone:/etc/timezone:ro" - "/etc/localtime:/etc/localtime:ro" networks: net: ipv4_address: "{{ site.subnet_site_ip }}" ports: - "127.0.0.1:2222:22" # SSH Passthrough networks: net: ipam: driver: default config: - subnet: "{{ site.subnet_cidr_address }}"