Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker Compose for Strapi with Mongodb
version : "3"
services:
strapi-mongo:
image: mongo
environment:
- MONGO_INITDB_DATABASE=strapi
volumes:
- ./db:/data/db
strapi-app:
image: strapi/strapi
environment:
- DATABASE_CLIENT=mongo
- DATABASE_HOST=strapi-mongo
- DATABASE_PORT=27017
- DATABASE_NAME=strapi
volumes:
- ./strapiapp:/usr/src/api/strapi-app
ports:
- 1337:1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.