mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
Docker example including a Next.js app which makes API requests to an Express API. Can be built individually or via docker-compose (see `README.md`) Addresses https://github.com/vercel/turborepo/issues/215
30 lines
555 B
YAML
30 lines
555 B
YAML
version: "3"
|
|
|
|
services:
|
|
web:
|
|
container_name: web
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/web/Dockerfile
|
|
restart: always
|
|
ports:
|
|
- 3000:3000
|
|
networks:
|
|
- app_network
|
|
api:
|
|
container_name: api
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/api/Dockerfile
|
|
restart: always
|
|
ports:
|
|
- 3001:3001
|
|
networks:
|
|
- app_network
|
|
|
|
# Define a network, which allows containers to communicate
|
|
# with each other, by using their container name as a hostname
|
|
networks:
|
|
app_network:
|
|
external: true
|