Skip to content

Commit 8a15c9f

Browse files
committed
Added all the files
1 parent ffcae00 commit 8a15c9f

16 files changed

+74
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#Command for buiding the image
2+
3+
docker build -t terra-simple-nginx-server .

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Nginx image in the Docker Hub
2+
FROM nginx:latest
3+
4+
# Nginx configuration
5+
COPY nginx/nginx.conf /etc/nginx/nginx.conf
6+
7+
# Exposing the port 8002
8+
EXPOSE 8002
9+
10+
# Health Check
11+
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
12+
CMD curl -f http://localhost:8002/ || exit 1
13+
14+
# default command to run Nginx
15+
CMD ["nginx", "-g", "daemon off;"]

LICENSE

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Copyright (c) 2024 Tim Murkomen
66

77
Permission is hereby granted, free of charge, to any person obtaining a copy of these application files and associated documentation files (the "Application Files"), to use, copy, modify, and distribute the Application Files, under the following conditions:
88

9-
1. **Educational Use**
10-
2. **Attribution**
11-
3. **Distribution**
9+
1. Educational Use
10+
2. Attribution
11+
3. Distribution
12+
13+
14+
By Tim Murkomen; November, 2024

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '3'
2+
services:
3+
web:
4+
build: .
5+
ports:
6+
- "8002:8002"
7+
File renamed without changes.
File renamed without changes.

docs/TROUBLESHOOTING.md

Whitespace-only changes.
210 KB
Loading
266 KB
Loading
244 KB
Loading

0 commit comments

Comments
 (0)