Initial commit

This commit is contained in:
2022-01-08 17:41:12 +01:00
commit 12a5ea3132
30 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
version: "3.8"
services:
webbserver:
restart: always
image: httpd:2.4
ports:
- 5050:80
volumes:
- ${PWD}/min-hemsida:/usr/local/apache2/htdocs

View File

@@ -0,0 +1,8 @@
version: "3.8"
services:
webbserver:
restart: always
image: httpd:2.4
ports:
- 5050:80

12
kapitel13/13_2/index.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8">
</head>
<body>
<h1>Apache i en Docker-container</h1>
<p>Min första hemsida som körs från en Docker-container!</p>
</body>
</html>

View File

@@ -0,0 +1,24 @@
version: "3.8"
services:
databas:
image: mysql:5.7.30
restart: always
environment:
- MYSQL_DATABASE=min_wiki
- MYSQL_USER=wikiuser
- MYSQL_PASSWORD=s3cr3t
- MYSQL_ROOT_PASSWORD=supers3cr3t
volumes:
- ${PWD}/databas:/var/lib/mysql
wiki:
image: mediawiki:1.34.1
restart: always
depends_on:
- databas
volumes:
- ${PWD}/LocalSettings.php:/var/www/html/LocalSettings.php
- ${PWD}/images:/var/www/html/images
ports:
- 80:80

View File

@@ -0,0 +1,3 @@
FROM httpd:2.4
RUN echo "Min anpassade webbserver" > \
/usr/local/apache2/htdocs/index.html

View File

@@ -0,0 +1,8 @@
version: "3.8"
services:
webbserver:
restart: always
build: .
ports:
- 6060:80