Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
backoffice_client
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
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
backoffice_client
Commits
50a22203
Commit
50a22203
authored
3 years ago
by
Guilhem CARRON
Browse files
Options
Downloads
Patches
Plain Diff
Fix local start + add nginx dependendy to backend
parent
5fed00d1
No related branches found
No related tags found
2 merge requests
!8
local- conf
,
!7
feat: add front office
Pipeline
#15540
passed
3 years ago
Stage: build
Stage: quality
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile.local
+0
-21
0 additions, 21 deletions
Dockerfile.local
docker-compose.local.yml
+2
-0
2 additions, 0 deletions
docker-compose.local.yml
keytmp.pem
+0
-30
0 additions, 30 deletions
keytmp.pem
package.json
+2
-2
2 additions, 2 deletions
package.json
with
4 additions
and
53 deletions
Dockerfile.local
deleted
100644 → 0
+
0
−
21
View file @
5fed00d1
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
FROM nginx:1.16
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./nginx/site.prod.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
FROM node:14-alpine as build-stage
WORKDIR /app
# install app dependencies
COPY package*.json ./
RUN npm install
# add app
COPY . ./
# start app
CMD ["npm", "start"]
This diff is collapsed.
Click to expand it.
docker-compose.local.yml
+
2
−
0
View file @
50a22203
...
...
@@ -9,6 +9,8 @@ services:
-
./key.pem:/etc/nginx/key.pem
ports
:
-
443:443
depends_on
:
-
backend
database
:
image
:
mysql:5
...
...
This diff is collapsed.
Click to expand it.
keytmp.pem
deleted
100644 → 0
+
0
−
30
View file @
5fed00d1
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFHDBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIg6hUy7m+qJYCAggA
MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECMyxy5+YOzwlBIIEyAeyjCYgTPl+
JAax0tlKp6NSEB7QxmXYAewV6XY+xfvjeWg/p+qpgQJbTwGbw6JuCejDsX98Jq6F
4N9H0B3pLkbxsLawRC2xnQdQp72rex48T9/Sohc5hO2rqi+29ivmt21xhbkakRYD
i/y+ZRrJdUfvMNg58QVJFHjYZa+R1sieW9jcQ/okfiow2EnBRAy1StgudeXFrJuo
H7gXWK46rnuGCZ+SAOxMyfo5ckDYoG3Ps/9FeuDYpN1f6suTwxkjqSK4OTf2aXIh
iVIoGtTuaTmRH+WHsgBve9qudqSPjHuaKo+ydD2OQNr564XDDg08WiKnyziOTHPF
WRvoD7uPxCSlvlolcHgRInD2a5qHvc3kcv5/brNPvRj1jfx5u5SgyPWtYQeXwDul
nsq7LkDrkzl22CXxQEJAjIINvBe39i0aZW2xVbK4MJwHMOr1N3UDQXFIi6I0OZP0
bEBR4md50/3FYxCceCxx10/+DewugykchKSF0Qha3Nw2PwPKaw6OGAM7hl8JuMcg
xEqRCpfs2eO3GCnxPOa/pzUB8LlJCY9cXNSiEGz3AMQl/Mn0+L69U4PbPHCgi4dw
0V3LzdMTROgh6QB0D54SaaFQx0tGJVf5b+HOk/aCe9UeGJpwTmaQZTGMq6YQlVbo
SN/OLI6N6rRKiAncf/DYn3h2u+DkQ8Ad9LFRB3BAtIP2+fTg63hfpNlPNqBTUy0o
5ZaZGdLmY+WdMIA1MgwRamjq40lP6WheESfhKdJMf+Ti4ta1MFNu7l8/OdsZa5JM
Dp1xqhhuhzjPAcQhllTto7MKpka0fKCaA//3XtPzrO6GQeAa1yLyMZUzgYdeopds
N5I4obvh2+uIAHb6vUUmopiJf1LIqUraV0kchHNo3A/XvgxWr/8Pv2e4Lf/zWvJi
MMRL6okbmtSs5ocMDFWfo1b9qvUKTSa9C5avm5ALLvttOS9DFdyJvg/U8fgIInrN
rN3enNwxI/43ClqCFtF9sm6CYpsVZT8N4zvFwOmMZIkuUD3n3oTNKnXBRr/QYlzo
OIPveJOo9eMkORpgJES0yEGnoeKVLY+h9QUDn9RJXxXpf758Mbofp8LX26eF69Ng
QfCdnqOcEVGdNQuQZFHFc84nVvL49TqRset5O7PiWN923vga78IC/yzgF0iwIvI8
yEclOga1HFC97Cy43eh1qtfi2g+r/s7uIamaxxV4KwfAcX1cTgyr7Rz1b3q+1UKn
2DuqoPaTjiNzCwVMHfcZAPfrHlRnw4DALDS3gH+aRKa5SyZ2SoQX/jUVE0+chBnm
DeeHKUraCK1FQWDRn5oDocy3yNaDz/b/2hzc8Nxl7snjPlkYzqRIOsVsUzMsRw/a
5E/tnd/99U/7t6b++emGopSLpUSqjLfKN3dm063jBPHKsSpNumsU6I00qlZkXCoB
8Usqt+GszrSt9XtLvK1Su5KFjhWJTICIy3lPw056peQZAv1I1ARZcecUDyLB9wwo
wmkRPpSmALLvRLdKvQnUk/oOnnqbSJFA5pGbyNaH/0q2CYjaDi8u7UlqmRezEw9a
zEA0N10VyXZKxss9F0KaTHrsMMfjFfKSaTyxzqqNUCa8QbezyAG+ISRua2smyQbB
4AkwJDFwXtzPUivYVtBZLw==
-----END ENCRYPTED PRIVATE KEY-----
This diff is collapsed.
Click to expand it.
package.json
+
2
−
2
View file @
50a22203
...
...
@@ -5,8 +5,8 @@
"scripts"
:
{
"start"
:
"react-scripts start"
,
"build"
:
"react-scripts build"
,
"
docker-
local-up"
:
"docker-compose -f docker-compose.local.yml up"
,
"
docker-
local-down"
:
"docker-compose -f docker-compose.local.yml down"
,
"local-up"
:
"docker-compose -f docker-compose.local.yml up
&& yarn start
"
,
"local-down"
:
"docker-compose -f docker-compose.local.yml down"
,
"docker"
:
"docker run -it --rm -p 3000:3000 front-backoffice"
,
"lint"
:
"eslint ."
,
"lint:fix"
:
"eslint --fix ."
,
...
...
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