version: "3" services: appsmith: image: appsmith/appsmith-ce container_name: appsmith-ce ports: - 80 - 443 - 9001 volumes: - /volume1/docker/appsmith/stacks:/appsmith-stacks environment: APPSMITH_MONGODB_URI: "mongodb://mongodb:27017/appsmith?replicaSet=rs0" depends_on: - mongodb restart: unless-stopped # IMPORTANT: Once the MongoDB container is up and running, access the container using the terminal via BASH. Once in enter the command 'mongo' (without the quotations). You should then see a '>' symbol. Then enter the command 'rs.initiate()' (again without the quotations). Wait for about 10-20 minutes and that should be that! mongodb: image: mongo:4.4 container_name: appsmith-mongodb command: --replSet rs0 ports: - "27017:27017" volumes: - /volume1/docker/appsmith/mongodb-data:/data/db restart: unless-stopped