skilld-labs / skilld-docker-container

Starterkit for drupal development
MIT License
20 stars 32 forks source link

Main configurations to deploy local projects using Mac OSX #400

Open davidferlay opened 2 years ago

davidferlay commented 2 years ago

Main Configurations are on the following files: .env and docker-compose.override.yml

  1. On .env please see the following changes:

    MAIN_DOMAIN_NAME=durable.localhost          // Update domain name instead of 'durable'
    #DB_URL=sqlite:///dev/shm/d8.sqlite         // Remove or comment this line
    #DB_URL=mysql://d8:d8@mysql/d8              // Remove or comment this line in case you have it
    DB_URL=sqlite:./../.cache/d8.sqlite         // Add this line
    #DB_DATA_DIR=/dev/shm                       // Remove or comment this line
    DB_DATA_DIR=../.cache                       // Add this line
    CUID=1000                                   // Add this line
    CGID=1000                                   // Add this line
  2. On /docker/docker-compose.override.yml please see the following changes:

    "./90-mail.ini:/etc/php7/conf.d/90-mail.ini:z"          // Remove this line
    "./90-mail.ini:/etc/php7/conf.d/90-mail.ini:cached"     // And add this one instead

    Uncomment ports:

    # Uncomment for MacOS.
    ports:
      - "8090:80"

    In case you get DNS error, please add:

    • dns: 8.8.8.8

Ready to run:

andypost commented 9 months ago

Makes sense to add link to https://docs.orbstack.dev/features to use instead of DockerDesctop for Mac as nowadays

andypost commented 9 months ago

One more related https://github.com/skilld-labs/skilld-docker-container/issues/451