[a] First commit, adding new files

This commit is contained in:
LogolicusZ 2024-06-26 14:20:51 +02:00
commit e7f90e3d19
3 changed files with 68 additions and 0 deletions

9
openshift/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM nginxinc/nginx-unprivileged
WORKDIR /usr/share/nginx/html
COPY index.html .
EXPOSE 8090
CMD ["nginx", "-g", "daemon off;", "-c", "/etc/nginx/nginx.conf"]

View file

@ -0,0 +1,41 @@
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- wordpress:/var/www/html
depends_on:
db:
condition: service_healthy
db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: "1"
volumes:
- db:/var/lib/mysql
# set memory limit to 1 gigabyte
deploy:
resources:
limits:
memory: 1G
# healthcheck
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
wordpress:
db:

18
openshift/index.html Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page Title</title>
</head>
<body>
<h1>Was ist cloud?</h1>
<p>&#x2022; Keine on premise maschienen</p>
<p>&#x2022; Gemietete Hardware</p>
<p>&#x2022; Host für services wie website oder software</p>
<p>&#x2022; Günstiger als on premise</p>
<p>&#x2022; Flexible scaling</p>
<p>&#x2022; Mehr support als mit onpremise</p>
</body>
</html>