-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (43 loc) · 1.73 KB
/
Dockerfile
File metadata and controls
55 lines (43 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#############################################
# NGINX Proxy : reverse proxy
#############################################
FROM nginxproxy/nginx-proxy:alpine AS nginx-proxy
LABEL maintainer="thfx31" description="Custom NGINX Proxy for CI/CD stack"
EXPOSE 80 443
#############################################
# NGINX : Let's Encrypt Companion
#############################################
FROM nginxproxy/acme-companion AS nginx-letsencrypt
LABEL maintainer="thfx31" description="Custom ACME Companion (Let's Encrypt)"
EXPOSE 80 443
#############################################
# Forge : NGINX homepage
#############################################
FROM nginx:alpine AS forge
LABEL maintainer="thfx31" description="Custom Forge homepage (NGINX)"
COPY ./forge-html /usr/share/nginx/html
RUN test -f /usr/share/nginx/html/index.html || (echo "ERROR: index.html not found!" && exit 1)
EXPOSE 80
#############################################
# Jenkins : CI/CD server
#############################################
FROM jenkins/jenkins:lts-jdk17 AS jenkins
LABEL maintainer="thfx31" description="Custom Jenkins with Docker CLI and tools"
USER root
RUN apt-get update && \
apt-get install -y docker.io git curl vim && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER jenkins
EXPOSE 8080 50000
#############################################
# Stage 6 — PostgreSQL (database)
#############################################
FROM postgres:16 AS postgres
LABEL maintainer="thfx31" description="Custom PostgreSQL 16 for Gitea"
EXPOSE 5432
#############################################
# Gitea : Git server
#############################################
FROM gitea/gitea:latest AS gitea
LABEL maintainer="thfx31" description="Custom Gitea Git server"
EXPOSE 3000