Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAE4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MATEJKA Milan
SAE4
Commits
ad42e877
Commit
ad42e877
authored
1 month ago
by
VoidOma
Browse files
Options
Downloads
Patches
Plain Diff
Initialisation du docker Affichage du site mais pas le css et SQL pas test
parent
89357b52
Branches
Branches containing commit
No related tags found
1 merge request
!1
MergeRequest_1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
code_source/Dockerfile
+11
-0
11 additions, 0 deletions
code_source/Dockerfile
code_source/docker-compose.yaml
+45
-0
45 additions, 0 deletions
code_source/docker-compose.yaml
code_source/web_app/config/config.php
+1
-1
1 addition, 1 deletion
code_source/web_app/config/config.php
with
57 additions
and
1 deletion
code_source/Dockerfile
0 → 100644
+
11
−
0
View file @
ad42e877
# Dockerfile
FROM
php:8.2-apache
# Installe les extensions nécessaires (mysqli pour MySQL, PDO si besoin)
RUN
docker-php-ext-install mysqli pdo pdo_mysql
# Copie uniquement le contenu de /web_app/public dans /var/www/html
COPY
web_app/public/ /var/www/html/
# (Optionnel mais conseillé) Permissions
RUN
chown
-R
www-data:www-data /var/www/html
This diff is collapsed.
Click to expand it.
code_source/docker-compose.yaml
0 → 100644
+
45
−
0
View file @
ad42e877
version
:
'
3.8'
services
:
web
:
build
:
context
:
.
dockerfile
:
Dockerfile
ports
:
-
"
8080:80"
volumes
:
-
./web_app/public:/var/www/html
-
./web_app/includes:/var/www/includes
-
./web_app/config:/var/www/config
-
./web_app/admin:/var/www/admin
-
./web_app/assets/images:/var/www/assets/images
-
./web_app/assets/css:/var/www/assets/css
-
./web_app/assets/js:/var/www/assets/js
-
./web_app/uploads:/var/www/uploads
depends_on
:
-
db
db
:
image
:
mysql:8.0
restart
:
always
environment
:
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
yes"
MYSQL_DATABASE
:
tennis
volumes
:
-
db_data:/var/lib/mysql
-
./db:/docker-entrypoint-initdb.d
phpmyadmin
:
image
:
phpmyadmin/phpmyadmin
restart
:
always
ports
:
-
"
8081:80"
environment
:
PMA_HOST
:
db
PMA_USER
:
root
PMA_PASSWORD
:
"
"
volumes
:
db_data
:
This diff is collapsed.
Click to expand it.
code_source/web_app/config/config.php
+
1
−
1
View file @
ad42e877
...
...
@@ -3,7 +3,7 @@
define
(
'ENV'
,
'dev'
);
// Informations de connexion à la base de données
$host
=
'
127.0.0.1
'
;
$host
=
'
db
'
;
$db
=
'tennis'
;
$user
=
'root'
;
$pass
=
''
;
// En production, utilise un mot de passe fort et stocké dans une variable d’environnement
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment