Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
f86b9376
Commit
f86b9376
authored
Mar 27, 2026
by
Kantz
Browse files
nginx vom Frontend abgelöst
parent
bca28457
Changes
2
Show whitespace changes
Inline
Side-by-side
math-tutor/docker/docker-compose.yml
View file @
f86b9376
services
:
nginx
:
image
:
nginx:1.27-alpine
depends_on
:
-
backend
-
frontend
ports
:
-
"
80:80"
volumes
:
-
./nginx.conf:/etc/nginx/conf.d/default.conf:ro
-
frontend-dist:/usr/share/nginx/html:ro
restart
:
unless-stopped
backend
:
build
:
context
:
../backend
...
...
@@ -23,15 +35,15 @@ services:
volumes
:
-
./logs:/app/logs
frontend
:
build
:
context
:
../frontend
dockerfile
:
Dockerfile
depends_on
:
-
backend
ports
:
-
"
80:80"
volumes
:
-
./nginx.conf:/etc/nginx/conf.d/default.conf:ro
-
frontend-dist:/dist
restart
:
unless-stopped
volumes
:
frontend-dist
:
math-tutor/frontend/Dockerfile
View file @
f86b9376
...
...
@@ -10,10 +10,10 @@ RUN pnpm install --frozen-lockfile
COPY
. .
RUN
pnpm run build
FROM
nginx:1.27-
alpine
FROM
alpine
:3.20
COPY
--from=build /app/dist /usr/share/nginx/html
WORKDIR
/app
EXPOSE
80
COPY
--from=build /app/dist ./dist
CMD
["
nginx
", "-
g
", "
daemon off;
"]
CMD
["
sh
", "-
c
", "
mkdir -p /dist && cp -r /app/dist/. /dist/ && tail -f /dev/null
"]
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment