version: "3"
services:
client:
container_name: client
build: client/
command: npm run dev
env_file:
- ".env"
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
volumes:
- ./client:/client
api:
container_name: api
build: api/
command: npm run dev
env_file:
- ".env"
volumes:
- ./api:/api
`//api:${process.env.API_PORT}`