'Error Running MongoDB via Docker Compose on ECS Fargate
I've been trying to launch a containerized mongoDB instance using docker-compose onto ECS w/ Fargate, here is my docker compose configuration:
mongo:
image: mongo:latest
restart: always
environment:
MONGO_INITDB_USERNAME: root
MONGO_INITDB_DATABASE: db-name
volumes:
- ./migration/init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
ports:
- "27017:27017"
Using docker compose version : 3
I'm getting the following error: FATA[0000] ClientException: Fargate compatible task definitions do not support sourcePath
Any ideas on what I'm doing wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
