I\'m trying to learn how to use docker compose with a simple setup of an nginx container that reroutes requests to a ghost container. I\'m using the standard ghost image but hav
I figured out what it was. I needed to name the nginx part of my composition something other than 'nginx' . I'm not sure if it's because there is already an nginx image or if it is something else, but changing it made it work properly.
By changing my compose file to:
ghost:
expose:
- "2368"
image: ghost
mything:
# image: nginx
build: ./nginx
ports:
- "80:80"
- "443:443"
links:
- ghost
I was able to get it to work. An indicator was that when the name changed, I actually saw the build process output for my container. If anyone knows exactly why the naming needs to be that way, I'd love to know.