I\'m using docker-compose and I\'d like to use different Dockerfiles for different services\' build steps. The docs seem to suggest to place different Dockerfiles in different d
You have to add it in build section. So, you can specify different alternative dockerfiles for each service.
services: service1: build: context: . args: - NODE_ENV=local dockerfile: Dockerfile_X ports: - "8765:8765"