Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
racoin
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
ETIQUE Kevin
racoin
Commits
4a25ea70
Commit
4a25ea70
authored
4 months ago
by
Aliec-AQ
Browse files
Options
Downloads
Patches
Plain Diff
ajout config
parent
ab3520d6
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/.empty
+0
-0
0 additions, 0 deletions
config/.empty
config/config.exemple.ini
+7
-0
7 additions, 0 deletions
config/config.exemple.ini
docker-compose.yml
+23
-1
23 additions, 1 deletion
docker-compose.yml
notes.md
+17
-1
17 additions, 1 deletion
notes.md
with
47 additions
and
2 deletions
config/.empty
deleted
100644 → 0
+
0
−
0
View file @
ab3520d6
This diff is collapsed.
Click to expand it.
config/config.exemple.ini
0 → 100644
+
7
−
0
View file @
4a25ea70
driver
=
mysql
host
=
db
database
=
racoin
username
=
user
password
=
password
charset
=
utf8
collation
=
utf8_unicode_ci
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
23
−
1
View file @
4a25ea70
...
...
@@ -7,4 +7,26 @@ services:
-
${PHP_PORT:-8080}:80
volumes
:
-
./:/var/www/html
command
:
php -S 0.0.0.0:80 -t .
\ No newline at end of file
command
:
php -S 0.0.0.0:80 -t .
depends_on
:
-
db
db
:
image
:
mysql:8.0
command
:
--default-authentication-plugin=mysql_native_password
restart
:
always
environment
:
MYSQL_ROOT_PASSWORD
:
rootpassword
MYSQL_DATABASE
:
racoin
MYSQL_USER
:
user
MYSQL_PASSWORD
:
password
ports
:
-
"
3306:3306"
volumes
:
-
mysql_data:/var/lib/mysql
-
./bdd.sql:/docker-entrypoint-initdb.d/1-schema.sql
-
./insert.sql:/docker-entrypoint-initdb.d/2-data.sql
-
./apikey.sql:/docker-entrypoint-initdb.d/3-apikey.sql
volumes
:
mysql_data
:
\ No newline at end of file
This diff is collapsed.
Click to expand it.
notes.md
+
17
−
1
View file @
4a25ea70
...
...
@@ -16,4 +16,20 @@
## But générale de l'application
c'est un site de vente entre particulier (leboncoin).
Il y a des annonces, des annonceurs, des catégories, des départements, photo et des régions.
\ No newline at end of file
Il y a des annonces, des annonceurs, des catégories, des départements, photo et des régions.
## Ce qu'il faut pour lancer l'application
-
installer le composer
-
ajouter un fichier de config pour la base de donnée
-
ajouter la base de donnée au docker-compose
-
lancer le docker-compose
# La prise en main
## Faire marcher l'application
-
ca marche
## Mode d'emploi
Pour lancer l'application :
-
Il faut d'abord installer le composer avec la commande
`composer install`
.
-
Il faut ajouter un fichier de config pour la base de donnée (copier le fichier
`config/config.example.ini`
et le modifier)
-
Il faut lancer le docker-compose avec la commande
`docker-compose up -d`
et se rendre sur le port 8080
\ No newline at end of file
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