Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1250405

Browse files
Added LAMP yml file
1 parent 510253c commit 1250405

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

‎docker-compose.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: "3"
2+
services:
3+
www:
4+
depends_on:
5+
- db
6+
image: php:8.4.3-apache
7+
ports:
8+
- 80:80
9+
- 443:443
10+
volumes:
11+
- ./www:/var/www/html
12+
db:
13+
image: mysql:latest
14+
environment:
15+
MYSQL_DATABASE: demo
16+
MYSQL_USER: demo
17+
MYSQL_PASSWORD: password
18+
MYSQL_ALLOW_EMPTY_PASSWORD: 1
19+
phpmyadmin:
20+
depends_on:
21+
- db
22+
image: phpmyadmin:latest
23+
ports:
24+
- 81:80
25+
environment:
26+
PMA_HOST: db
27+
PMA_PORT: 3306
28+
29+
# localhost:81
30+
# Log in using demo and password
31+

‎www/index.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Home Page</title>
7+
</head>
8+
<body>
9+
10+
<h1>Home Page</h1>
11+
12+
<?php echo "<p>Hello Word!</p>"; ?>
13+
14+
</body>
15+
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /