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