I’m little bit confused with docker and containers, let’s say I have 2 folders
- front
- back
on front folder i use purgecss to delete unused css from my scripts and also from my .pug filels inside back without docker this is easy to just do something like
../back/src/ui/views/**/*.pug
now I’m trying to migrate my setup to docker and docker compose
services:
nginx:
build:
context: ../nginx
dockerfile: Dockerfile
container_name: nginx
ports:
- '3000:80'
- '443:443'
volumes:
- ../../core/front/static:/usr/share/nginx/static:ro
networks:
- app-network
front:
build:
context: ../../core/front
dockerfile: infra/Dockerfile.dev
container_name: front
volumes:
- ../../core/front/:/app
networks:
- app-network
back:
build:
context: ../../core/back
dockerfile: infra/Dockerfile.dev
container_name: back
environment:
NODE_ENV: development
volumes:
- ../../core/back/:/app
networks:
- app-network
networks:
app-network:
driver: bridge
now the path ../back/src/ui/views/**/*.pug won’t work anymore since front and back are running in different containers not locally anymore, is it possible to do that or it’s not possible if both running in different containers ?

