From cc7cb56aa3addae9beef660a97af4987fb8c490e Mon Sep 17 00:00:00 2001 From: reqwizz Date: Tue, 5 Nov 2024 00:14:05 +0300 Subject: [PATCH] lftaver1.0 add nginx and proxy --- .gitignore | 3 ++- docker-compose.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 42f83d0..b836939 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ gitea-data -jenkins-data \ No newline at end of file +jenkins-data +nginx \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 6b83944..c6cf69d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,19 @@ services: + nginx: + image: nginx:latest + container_name: nginx + volumes: + - ./nginx/conf.d:/etc/nginx/conf.d + - ./nginx/ssl:/etc/nginx/ssl + - ./nginx/html:/usr/share/nginx/html + - /coursework/nginx/ssl:/coursework/nginx/ssl + ports: + - "80:80" + - "443:443" + depends_on: + - gitea + restart: always + gitea: image: gitea/gitea:latest container_name: gitea