Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Base Docker PHP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dhevan Muhammad
Base Docker PHP
Commits
9bb43bd7
Commit
9bb43bd7
authored
Sep 23, 2022
by
dhevanthareza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker base php
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
Dockerfile
Dockerfile
+10
-0
README.md
README.md
+7
-0
docker-compose.yml
docker-compose.yml
+19
-0
No files found.
Dockerfile
0 → 100755
View file @
9bb43bd7
FROM
php:8.1-apache
RUN
docker-php-ext-install mysqli pdo pdo_mysql
RUN
apt-get update
-y
&&
apt-get
install
-y
libpng-dev
RUN
apt-get update
&&
\
apt-get
install
-y
\
zlib1g-dev
RUN
docker-php-ext-install gd
RUN
a2enmod rewrite
RUN
service apache2 restart
README.md
0 → 100644
View file @
9bb43bd7
# CHEATSHET
1.
This is Dockerfile that u can used to run php based project
2.
to change php version you change it on Dockerfile
3.
Maybe you need to change the port forwarding on docker-compose.yml so wont crash with your another service on your laptop
4.
then for run your project just do docker-compose up --build at first time and docker-compose up on next time
\ No newline at end of file
docker-compose.yml
0 → 100755
View file @
9bb43bd7
version
:
'
3.1'
services
:
php-apache
:
container_name
:
digitepp
build
:
context
:
.
dockerfile
:
Dockerfile
ports
:
-
4000:80
volumes
:
-
./:/var/www/html/
-
./apache/default.conf:/etc/apache2/sites-enabled/000-default.conf
service-mysql
:
container_name
:
mysqlnyadigitepp
build
:
context
:
.
dockerfile
:
DockerfileMysql
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment