Closed BKStephens closed 5 years ago
@BKStephens Can you post the output of the command docker-compose config
for this project?
docker-compose config
networks: {}
services:
engagement:
build:
context: /Users/benstephens/repos/engagement-compose
dockerfile: Dockerfile.engagement
command: npm run hot
depends_on:
- engagement_db
- engagement_db_test
- engagement_memcached
- engagement_redis
environment:
...
network_mode: bridge
ports:
- 4022:4022
- 8081:8081
- 1234:1234
volumes:
- /Users/benstephens/repos/engagement:/engagement:rw
volumes_from:
- service:engagement_bundle:rw
- service:engagement_node_modules:rw
engagement-chat:
build:
context: /Users/benstephens/repos/engagement-compose
dockerfile: Dockerfile.engagement-chat
command: npm start
depends_on:
- engagement-chat_db
- engagement-chat_redis
- engagement-chat_db_test
- engagement-chat_redis_test
- engagement
environment:
...
ports:
- 3009:3009
volumes:
- /Users/benstephens/repos/engagement-chat:/engagement-chat:rw
volumes_from:
- service:engagement-chat_node_modules:rw
engagement-chat_db:
environment:
...
image: postgres:9.5
ports:
- 5434:5432
engagement-chat_db_test:
environment:
...
image: postgres:9.5
ports:
- 5435:5432
engagement-chat_node_modules:
image: busybox
volumes:
- /engagement-chat/node_modules:rw
engagement-chat_redis:
image: redis
ports:
- 6379:6379
engagement-chat_redis_test:
image: redis
ports:
- 6378:6379
engagement_bundle:
image: busybox
volumes:
- /engagement_bundle:rw
engagement_db:
environment:
...
image: postgres:9.5
ports:
- 5432:5432
engagement_db_test:
environment:
...
image: postgres:9.5
ports:
- 5433:5432
engagement_memcached:
image: memcached
ports:
- 11211:11211
engagement_node_modules:
image: busybox
volumes:
- /engagement/node_modules:rw
engagement_redis:
image: redis
mailcatcher:
build:
context: /Users/benstephens/repos/engagement-compose
dockerfile: Dockerfile.mailcatcher
command: mailcatcher --smtp-ip=0.0.0.0 --http-ip=0.0.0.0 --foreground
ports:
- 1080:1080
- 1025:1025
unity-notify:
build:
context: /Users/benstephens/repos/engagement-compose
dockerfile: Dockerfile.unity-notify
command: foreman start
depends_on:
- unity-notify_db
- unity-notify_db_test
- unity-notify_redis
environment:
...
network_mode: bridge
ports:
- 3050:3050
- 1236:1236
volumes:
- /Users/benstephens/repos/unity-notify:/unity-notify:rw
volumes_from:
- service:unity-notify_bundle:rw
unity-notify_bundle:
image: busybox
volumes:
- /unity-notify_bundle:rw
unity-notify_db:
environment:
...
image: postgres:9.5
ports:
- 5436:5432
unity-notify_db_test:
environment:
...
image: postgres:9.5
ports:
- 5437:5432
unity-notify_redis:
image: redis
ports:
- 6380:6379
version: '2.0'
volumes: {}
Sorry for the (very) late answer.
You appear to have problematic paths in your volumes, like /engagement-chat/node_modules
or /engagement_bundle
. I suggest that you check your docker-compose.yml
file or any other file contributing to it (override, includes, etc.)
I think this issue can be closed.
I no longer have access to this code now that I have changed jobs. Will close the issue.
I have traced this issue down to 1a1d6370f6fa75159ace63ce9a8204e0c8c10631.
With 049056a13eb9b5d251804e6c9fba2405bc2e2be9, the preceding commit, everything works:
but with 1a1d6370f6fa75159ace63ce9a8204e0c8c10631, when I run:
I get the following output:
I am wondering if the - in the directory name is causing an issue. @genezys as the author of 1a1d6370f6fa75159ace63ce9a8204e0c8c10631, do you have any ideas on what the problem is?