version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile target: production ports: - "5000:5000" environment: - ADMIN_USERNAME=admin - ADMIN_PASSWORD=admin123 volumes: - /var/run/docker.sock:/var/run/docker.sock restart: unless-stopped frontend: build: context: ./frontend dockerfile: Dockerfile target: production args: - NEXT_PUBLIC_API_URL=http://localhost:5000 ports: - "3000:3000" environment: - NEXT_PUBLIC_API_URL=http://backend:5000 depends_on: - backend restart: unless-stopped