commit e7f90e3d192757a2f41de721334697848f893608 Author: LogolicusZ Date: Wed Jun 26 14:20:51 2024 +0200 [a] First commit, adding new files diff --git a/openshift/Dockerfile b/openshift/Dockerfile new file mode 100644 index 0000000..7a24cd5 --- /dev/null +++ b/openshift/Dockerfile @@ -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"] diff --git a/openshift/docker-compose.yml b/openshift/docker-compose.yml new file mode 100644 index 0000000..552bd5b --- /dev/null +++ b/openshift/docker-compose.yml @@ -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: \ No newline at end of file diff --git a/openshift/index.html b/openshift/index.html new file mode 100644 index 0000000..922b97f --- /dev/null +++ b/openshift/index.html @@ -0,0 +1,18 @@ + + + + + + Your Page Title + + +

Was ist cloud?

+

• Keine on premise maschienen

+

• Gemietete Hardware

+

• Host für services wie website oder software

+

• Günstiger als on premise

+

• Flexible scaling

+

• Mehr support als mit onpremise

+ + +