Trying to run FCC in docker

I cloned the FCC repo and followed the instructions to get the server running, and this went without incident … but I’d really like to get it running in docker instead of needing mongodb on my local machine. I noticed a docker-compose.yml file, which contained two commands to run, namely these:

# Bootstrap with:
#   docker-compose run --rm freecodecamp npm install
#   docker-compose run --rm freecodecamp npm run only-once

The first command went off without a hitch, but I had no success with the second. It seems to die when seeding the database:

Seeding Database
    throw err;

Error: Cannot find module '/app/seed/index.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

Am I missing some other setup step?

Here is a PR in works to update our local docker setup. Feel free to try it out.

I did give the docker branch a try, and it appears to work nicely. Thanks :slight_smile:

I’ll follow up on the Gitter channel and the PR if I find any issues with it.

1 Like