Initial microservice-importer setup with NestJS backend and Next.js frontend
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
importer-frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: importer-frontend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
NEXT_PUBLIC_API_URL_INTERNAL: "http://importer-api:3001"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
networks:
|
||||
- importer-network
|
||||
depends_on:
|
||||
- importer-api
|
||||
|
||||
importer-api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: backend/Dockerfile
|
||||
image: recipe-importer-api:local
|
||||
container_name: importer-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
NODE_ENV: "production"
|
||||
PORT: "3001"
|
||||
ports:
|
||||
- "3001:3001"
|
||||
networks:
|
||||
- importer-network
|
||||
|
||||
networks:
|
||||
importer-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user