feat: new fixed Dockerfiles for deployment in separate folders, docker compose for composing the stack

This commit is contained in:
theoleuthardt 2025-02-15 11:19:44 +01:00
parent 6767782613
commit be3ab2bcaf
4 changed files with 91 additions and 13 deletions

View file

@ -1,13 +1,32 @@
services:
app:
frontend:
build:
context: .
context: ./frontend
dockerfile: Dockerfile
container_name: werkzeugkiste
container_name: werkzeugkiste-frontend
environment:
NODE_ENV: production
HOSTNAME: 0.0.0.0
PORT: 3000
- NODE_ENV=production
- HOSTNAME=0.0.0.0
- PORT=3000
- backend_url=http://backend:4000
ports:
- "3000:3000"
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: werkzeugkiste-backend
environment:
- NODE_ENV=production
- HOSTNAME=0.0.0.0
- PORT=4000
- CORS_ORIGIN=http://frontend:3000
ports:
- "4000:4000"
restart: unless-stopped
networks:
default:
driver: bridge