Docker Compose (single machine / development) with Docker Images

In this guide, you will have everything up and running on one machine and using the latest docker images provided by us. It is not recommended however for production use.

Requirements:

Steps:

  1. Configure backend.env for backend service configuration and frontend.env for frontend configuration according to our Configuration guide.
  2. Start dependency services with docker-compose like so:
docker-compose -p crowd -f scaffold-services.yaml up -d
  1. Wait a few seconds so that the database starts and apply all database schema migration files in alphabetical order from here.
  2. Start crowd.dev services like so:
docker-compose -p crowd -f crowd-services.yaml up -d
  1. Confirm everything is up and running by executing docker ps -al command and you should see an output similar to:
CONTAINER ID   IMAGE                                                   COMMAND                  CREATED          STATUS          PORTS                                                                                  NAMES
83ee092fc691   crowddotdev/frontend:1666797381.7d4dfbd                 "/docker-entrypoint.…"   3 seconds ago    Up 2 seconds    80/tcp, 0.0.0.0:8081->8081/tcp, :::8081->8081/tcp                                      crowd-frontend-1
263d6e631615   crowddotdev/premium-python-backend:1666798696.7d4dfbd   "python -u worker.py"    3 seconds ago    Up 1 second                                                                                            crowd-premium-python-worker-1
f3426551f404   crowddotdev/python-worker:1666798839.7d4dfbd            "python -u python_wo…"   3 seconds ago    Up 1 second                                                                                            crowd-python-worker-1
361d1bfc4095   crowddotdev/backend:1666797189.7d4dfbd                  "docker-entrypoint.s…"   3 seconds ago    Up 1 second                                                                                            crowd-job-generator-1
9ada1ffd596d   crowddotdev/backend:1666797189.7d4dfbd                  "docker-entrypoint.s…"   3 seconds ago    Up 1 second     0.0.0.0:8080->8080/tcp, :::8080->8080/tcp                                              crowd-api-1
e43bd105ad93   crowddotdev/premium-python-backend:1666798696.7d4dfbd   "python -u -m flask …"   3 seconds ago    Up 1 second                                                                                            crowd-premium-api-1
e84b5c874048   crowddotdev/backend:1666797189.7d4dfbd                  "docker-entrypoint.s…"   3 seconds ago    Up 2 seconds                                                                                           crowd-nodejs-worker-1
0e484a5a0ded   crowddotdev/premium-job-generator:1666800146.a13e2c47   "docker-entrypoint.s…"   3 seconds ago    Up 1 second                                                                                            crowd-premium-job-generator-1
927fa8e33c19   crowddotdev/cubejs:1666800955.4683dc0a                  "docker-entrypoint.s…"   11 seconds ago   Up 10 seconds   0.0.0.0:4000->4000/tcp, :::4000->4000/tcp, 0.0.0.0:3001->3000/tcp, :::3001->3000/tcp   crowd-cubejs-1
206d6d1e34c1   postgres:13.6-alpine                                    "docker-entrypoint.s…"   11 seconds ago   Up 10 seconds   0.0.0.0:5432->5432/tcp, :::5432->5432/tcp                                              crowd-db-1
b8b9e17995e3   crowddotdev/nginx:1666797978.7d4dfbd                    "/docker-entrypoint.…"   11 seconds ago   Up 10 seconds   80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp                                          crowd-nginx-1
25e154c90cc7   crowddotdev/elasticmq:1666797020.7d4dfbd                "/sbin/tini -- /opt/…"   11 seconds ago   Up 10 seconds   0.0.0.0:9324-9325->9324-9325/tcp, :::9324-9325->9324-9325/tcp                          crowd-sqs-1
08433a04ccc9   getmeili/meilisearch:v0.27.2                            "tini -- /bin/sh -c …"   11 seconds ago   Up 10 seconds   0.0.0.0:7700->7700/tcp, :::7700->7700/tcp                                              crowd-search-engine-1
  1. Open up our web app at http://localhost:8081/auth/signup and follow the onboarding guide.

🚧

Warning

Please be aware that using this guide all dependencies will be running on a single machine as well. Some of them (AWS SQS & S3) will be emulated or replaced with an open-source equivalent. Because of them, it is not recommended to use this guide to run our applications for production purposes.