From 5a9347fab1f68299e181387e22fa0db5ea4c79d9 Mon Sep 17 00:00:00 2001 From: Otho Ulrich Date: Sat, 9 Jul 2022 00:42:38 -0400 Subject: [PATCH] Added default root and fixed ordering. --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index e59726b..2667ff1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: gitea: image: gitea/gitea:latest container_name: gitea + restart: always environment: - USER_UID=1000 - USER_GID=1000 @@ -27,7 +28,6 @@ services: - VIRTUAL_HOST=code.othoulrich.com - VIRTUAL_PORT=3000 - LETSENCRYPT_HOST=code.othoulrich.com - restart: always networks: - gitea - proxy @@ -71,6 +71,8 @@ services: image: nginxproxy/nginx-proxy container_name: nginx-proxy restart: always + environment: + - DEFAULT_ROOT="301 http://www.othoulrich.com" ports: - 80:80 - 443:443