-
Notifications
You must be signed in to change notification settings - Fork 1
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 #46 from CPNV-ES/develop
Release 1.0.1
- Loading branch information
Showing
34 changed files
with
940 additions
and
18 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,31 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/php | ||
{ | ||
"name": "PHP", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/php:1-8.2-bullseye", | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
8080 | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"rexshi.phpdoc-comment-vscode-plugin" | ||
] | ||
} | ||
} | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html" | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for more information: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
# https://containers.dev/guide/dependabot | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
File renamed without changes
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.
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 |
---|---|---|
|
@@ -14,18 +14,20 @@ This is a project for the MAW11 course. We're supposed to rewrite [this website] | |
* Composer 2.7.8 | ||
|
||
### Configuration | ||
|
||
Make `.env` file | ||
and put the | ||
```env | ||
POSTGRES_USER=admin | ||
POSTGRES_PASSWORD=mysecretpassword | ||
[email protected] | ||
PGADMIN_DEFAULT_PASSWORD=admin | ||
``` | ||
or copy `.env.example` | ||
Before starting the docker environment, you need to follow the following steps: | ||
You need to setup the `.env` file. | ||
Copy the `.env.example` file and change the environment variables content. | ||
|
||
## Deployment | ||
|
||
You need to install composer requirements : | ||
`composer install` | ||
|
||
Now you can start the docker stack. | ||
|
||
If you want xdebug and phpmyadmin, use the dev environment. If you dont need them, use the production environment. | ||
|
||
|
||
### On dev environment | ||
#### Docker | ||
|
||
|
@@ -39,12 +41,15 @@ docker-compose up | |
php -S localhost:8000 -t public | ||
``` | ||
|
||
### On integration environment | ||
### On prod environment | ||
|
||
```bash | ||
docker-compose -f docker-compose-prod.yml up | ||
``` | ||
|
||
The application will be available at [127.0.0.1:8080](http://127.0.0.1:8080) | ||
|
||
|
||
## Directory structure | ||
|
||
```shell | ||
|
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
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
Oops, something went wrong.