-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #550 from hoang-himself/containers
Add ability to run via containers
- Loading branch information
Showing
8 changed files
with
171 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/.git | ||
**/.gitignore | ||
**/.github | ||
**/Dockerfile* | ||
**/.dockerignore | ||
**/compose* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
config/config.inc.php.bak | ||
config/config.inc.php | ||
|
||
Dockerfile | ||
|
||
# Vim swap files | ||
.*swp | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM docker.io/library/php:8-apache | ||
WORKDIR /var/www/html | ||
|
||
# https://www.php.net/manual/en/image.installation.php | ||
RUN apt-get update \ | ||
&& apt-get install -y zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& docker-php-ext-configure gd --with-jpeg --with-freetype \ | ||
# Use pdo_sqlite instead of pdo_mysql if you want to use sqlite | ||
&& docker-php-ext-install gd mysqli pdo pdo_mysql | ||
|
||
COPY --chown=www-data:www-data . . | ||
COPY --chown=www-data:www-data config/config.inc.php.dist config/config.inc.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
volumes: | ||
dvwa: | ||
|
||
|
||
networks: | ||
dvwa: | ||
|
||
|
||
services: | ||
dvwa: | ||
build: . | ||
environment: | ||
- DB_SERVER=db | ||
depends_on: | ||
- db | ||
networks: | ||
- dvwa | ||
ports: | ||
- 4280:80 | ||
restart: unless-stopped | ||
|
||
db: | ||
image: docker.io/library/mariadb:10 | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=dvwa | ||
- MYSQL_DATABASE=dvwa | ||
- MYSQL_USER=dvwa | ||
- MYSQL_PASSWORD=p@ssw0rd | ||
volumes: | ||
- dvwa:/var/lib/mysql | ||
networks: | ||
- dvwa | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.