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
008a0b90
Commit
008a0b90
authored
3 years ago
by
Guilhem CARRON
Browse files
Options
Downloads
Patches
Plain Diff
add docker compose
parent
4364dd76
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
feat: add front office
,
!5
Https test
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.old.yml
+32
-0
32 additions, 0 deletions
docker-compose.old.yml
docker-compose.pro.yml
+0
-9
0 additions, 9 deletions
docker-compose.pro.yml
docker-compose.yml
+48
-17
48 additions, 17 deletions
docker-compose.yml
with
80 additions
and
26 deletions
docker-compose.old.yml
0 → 100644
+
32
−
0
View file @
008a0b90
version
:
'
3.7'
services
:
nginx
:
image
:
nginx:1.16
restart
:
unless-stopped
volumes
:
-
./nginx/site.conf:/etc/nginx/conf.d/default.conf
-
./nginx/nginx.conf:/etc/nginx/nginx.conf
command
:
[
"
nginx"
,
"
-g"
,
"
daemon
off;"
]
ports
:
-
8081:8080
networks
:
backoffice
:
depends_on
:
-
front
links
:
-
front
front
:
image
:
bayesimpact/react-base
restart
:
unless-stopped
volumes
:
-
./:/usr/app
working_dir
:
/usr/app
ports
:
-
3000:3000
networks
:
backoffice
:
networks
:
backoffice
:
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.pro.yml
deleted
100644 → 0
+
0
−
9
View file @
4364dd76
version
:
'
3.7'
services
:
nginx
:
image
:
backoffice
#TODO: replace with forge image tag
build
:
context
:
.
restart
:
unless-stopped
ports
:
-
8080:80
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
48
−
17
View file @
008a0b90
version
:
'
3.7'
services
:
nginx
:
image
:
nginx:1.16
image
:
test
restart
:
unless-stopped
ports
:
-
8080:8080
networks
:
backoffice
:
volumes
:
-
./nginx/site.conf:/etc/nginx/conf.d/default.conf
-
./nginx/nginx.conf:/etc/nginx/nginx.conf
command
:
[
"
nginx"
,
"
-g"
,
"
daemon
off;"
]
-
./cert.pem:/etc/nginx/cert.pem
-
./key.pem:/etc/nginx/key.pem
database
:
image
:
mysql:5
ports
:
-
8081:8080
-
3306:3306
networks
:
backoffice
:
depends_on
:
-
front
links
:
-
front
environment
:
MYSQL_ROOT_PASSWORD
:
${DATABASE_PASSWORD}
MYSQL_DATABASE
:
${DATABASE_NAME}
healthcheck
:
test
:
mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
interval
:
5s
timeout
:
10s
retries
:
60
front
:
image
:
bayesimpact/react-base
backend
:
image
:
registry.forge.grandlyon.com/web-et-numerique/llle_project/backoffice-server:test
networks
:
backoffice
:
depends_on
:
database
:
condition
:
service_healthy
restart
:
unless-stopped
volumes
:
-
./:/usr/app
working_dir
:
/usr/app
-
/etc/localtime:/etc/localtime:ro
-
./configs:/app/configs
-
./letsencrypt_cache:/app/letsencrypt_cache
-
./data:/app/data
ports
:
-
3000:3000
networks
:
backoffice
:
-
${HTTPS_PORT}:${HTTPS_PORT}
-
8090:8090
environment
:
-
HOSTNAME=${HOSTNAME}
-
HTTPS_PORT=${HTTPS_PORT}
-
ADMIN_ROLE=${ADMIN_ROLE}
-
REDIRECT_URL=${REDIRECT_URL}
-
CLIENT_ID=${CLIENT_ID}
-
CLIENT_SECRET=${CLIENT_SECRET}
-
AUTH_URL=${AUTH_URL}
-
TOKEN_URL=${TOKEN_URL}
-
USERINFO_URL=${USERINFO_URL}
-
DEBUG_MODE=${DEBUG_MODE}
-
DATABASE_USER=${DATABASE_USER}
-
DATABASE_NAME=${DATABASE_NAME}
-
DATABASE_PASSWORD=${DATABASE_PASSWORD}
-
DATABASE_HOST=database
networks
:
backoffice
:
\ No newline at end of file
backoffice
:
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