I'm having an issue when trying to start multiple containers with docker-compose:
Dockerfile:
FROM nginx:1.9
ADD ./nginx-sites/default /etc/nginx/sites-available/default
docker-compose.yml:
version: "2"
services:
web:
build: .
ports:
- "80:80"
volumes:
- ./src:/var/www
links:
- fpm
fpm:
image: php:7-fpm
volumes:
- ./src:/var/www
When I use docker-compose up
to start the application, I get the following error:
ERROR: Container command not found or does not exist.
Would love some help with this issue.