Files
docker-service-discovery/docker-compose.yml
2026-03-31 20:37:12 +02:00

22 lines
517 B
YAML

version: '3.8'
services:
backend:
build: ./backend
ports:
- "3001:3001"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
frontend:
build:
context: ./frontend
args:
# The URL of the backend API.
# This is passed to the React application during the build process.
# If not set, the frontend will default to http://localhost:3001 in the frontend code.
- REACT_APP_BACKEND_URL
ports:
- "3000:3000"
depends_on:
- backend