[a] First commit, adding new files
This commit is contained in:
commit
e7f90e3d19
3 changed files with 68 additions and 0 deletions
9
openshift/Dockerfile
Normal file
9
openshift/Dockerfile
Normal 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"]
|
41
openshift/docker-compose.yml
Normal file
41
openshift/docker-compose.yml
Normal 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
18
openshift/index.html
Normal 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>• Keine on premise maschienen</p>
|
||||||
|
<p>• Gemietete Hardware</p>
|
||||||
|
<p>• Host für services wie website oder software</p>
|
||||||
|
<p>• Günstiger als on premise</p>
|
||||||
|
<p>• Flexible scaling</p>
|
||||||
|
<p>• Mehr support als mit onpremise</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue