refactor: add https and acme to traefik
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user