refactor: add https and acme to traefik

This commit is contained in:
2023-03-29 22:19:37 -07:00
parent ed426593d4
commit c3f6bd2ea9
9 changed files with 65 additions and 24 deletions

View File

@@ -1,3 +1,5 @@
{% from "contrib/compose_helpers.j2" import traefik_labels with context %}
{##}
version: "3.7"
networks:
@@ -10,9 +12,7 @@ services:
image: gitea/gitea:1.18
container_name: gitea_server
labels:
- traefik.enable=true
- traefik.http.routers.gitea.rule=Host(`gitea.{{ domain }}`)
- traefik.http.services.gitea.loadbalancer.server.port=3000
- {{ traefik_labels("gitea", port="3000") | indent(6) }}
restart: unless-stopped
env_file:
- .env.gitea