Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sumonst21/95142e82d6abb0342d7093c61fe6c380 to your computer and use it in GitHub Desktop.
Save sumonst21/95142e82d6abb0342d7093c61fe6c380 to your computer and use it in GitHub Desktop.

Revisions

  1. @MexsonFernandes MexsonFernandes created this gist Jan 11, 2021.
    31 changes: 31 additions & 0 deletions strapi-docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    version: "3"

    services:
    strapi:
    build:
    context: ./
    container_name: strapi_cms
    env_file: .env
    restart: unless-stopped
    environment:
    DATABASE_URI: ${DATABASE_URI}
    networks:
    - strapi-app-network
    ports:
    - "1337:1337"
    depends_on:
    - mongo

    mongo:
    image: mongo
    container_name: strapi_mongo
    volumes:
    - ./strapidata:/data/db
    networks:
    - strapi-app-network
    ports:
    - "27017:27017"

    networks:
    strapi-app-network:
    driver: bridge