This commit is contained in:
Tomas Dvorak
2026-04-21 11:40:27 +02:00
parent 6e8fedf534
commit efcc157c67
2 changed files with 36 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
+24
View File
@@ -0,0 +1,24 @@
version: "3.8"
services:
backend:
build:
context: ./apps/backend
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- ENV=${ENV:-development}
restart: unless-stopped
frontend:
build:
context: ./apps/web
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- API_URL=http://backend:8080
depends_on:
- backend
restart: unless-stopped