Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
quizz
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaganaz
quizz
Commits
8e726cda
Commit
8e726cda
authored
Jun 25, 2025
by
Shaganaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Docker setup
parent
8c201fce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
Dockerfile
Dockerfile
+7
-0
docker-compose.yml
docker-compose.yml
+34
-0
No files found.
Dockerfile
0 → 100644
View file @
8e726cda
FROM
node:18-alpine
COPY
package*.json ./
RUN
npm install
COPY
. .
EXPOSE
3000
CMD
["npm", "start"]
docker-compose.yml
0 → 100644
View file @
8e726cda
version
:
'
3.8'
services
:
app
:
build
:
.
container_name
:
quiz-app
ports
:
-
"
3000:3000"
environment
:
-
DB_HOST=mysql
-
DB_USER=root
-
DB_PASS=Shaganaz@123
-
DB_NAME=quiz_app
-
JWT_SECRET=secretkey123
-
JWT_EXPIRES_IN=1h
depends_on
:
-
mysql
networks
:
-
quiz-network
mysql
:
image
:
mysql:8
container_name
:
quiz-mysql
environment
:
MYSQL_ROOT_PASSWORD
:
Shaganaz@123
MYSQL_DATABASE
:
quiz_app
ports
:
-
"
3306:3306"
networks
:
-
quiz-network
networks
:
quiz-network
:
driver
:
bridge
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment