Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
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
dockers
3f-timesheet
Commits
8c3a06dc
Commit
8c3a06dc
authored
Jul 01, 2026
by
shameelaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit docker
parent
2d10546b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
0 deletions
+90
-0
Dockerfile
+50
-0
docker-compose.yaml
+40
-0
No files found.
Dockerfile
0 → 100644
View file @
8c3a06dc
FROM
php:7.4-apache
WORKDIR
/var/www/html
# Install system dependencies
RUN
apt-get update
&&
apt-get install
-y
\
libpng-dev
\
libjpeg-dev
\
libfreetype6-dev
\
libonig-dev
\
libxml2-dev
\
libzip-dev
\
libldap2-dev
\
zip
\
unzip
\
git
\
curl
\
nodejs
\
npm
# Configure and install PHP extensions
RUN
docker-php-ext-configure gd
--with-freetype
--with-jpeg
\
&&
docker-php-ext-configure ldap
--with-libdir
=
lib/x86_64-linux-gnu/
\
&&
docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip ldap
# Enable Apache mod_rewrite
RUN
a2enmod rewrite
# Update Apache DocumentRoot to Laravel's public directory
ENV
APACHE_DOCUMENT_ROOT /var/www/html/public
RUN
sed
-ri
-e
's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g'
/etc/apache2/sites-available/
*
.conf
RUN
sed
-ri
-e
's!/var/www/!${APACHE_DOCUMENT_ROOT}!g'
/etc/apache2/apache2.conf /etc/apache2/conf-available/
*
.conf
# Install Composer
COPY
--from=composer:2.2 /usr/bin/composer /usr/bin/composer
# Copy existing application directory
COPY
. /var/www/html
# Set permissions
RUN
chown
-R
www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
# Set up the entrypoint script
COPY
entrypoint.sh /usr/local/bin/
RUN
chmod +x /usr/local/bin/entrypoint.sh
EXPOSE
80
ENTRYPOINT
["entrypoint.sh"]
\ No newline at end of file
docker-compose.yaml
0 → 100644
View file @
8c3a06dc
version
:
'
3.8'
services
:
app
:
build
:
context
:
.
dockerfile
:
Dockerfile
image
:
3f-timesheet-app
container_name
:
3f-timesheet-app
restart
:
unless-stopped
ports
:
-
"
8000:80"
depends_on
:
-
db
networks
:
-
timesheet-network
db
:
image
:
mysql:5.7
container_name
:
3f-timesheet-db
restart
:
unless-stopped
environment
:
MYSQL_DATABASE
:
${DB_DATABASE}
MYSQL_ROOT_PASSWORD
:
${DB_PASSWORD}
MYSQL_USER
:
${DB_USERNAME}
MYSQL_PASSWORD
:
${DB_PASSWORD}
ports
:
-
"
3306:3306"
volumes
:
-
dbdata:/var/lib/mysql
networks
:
-
timesheet-network
networks
:
timesheet-network
:
driver
:
bridge
volumes
:
dbdata
:
\ 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