Skip to content

Instantly share code, notes, and snippets.

@gauravds
Created February 8, 2024 21:52
Show Gist options
  • Save gauravds/1a93d577de76147ec8a88bf60a88f1a5 to your computer and use it in GitHub Desktop.
Save gauravds/1a93d577de76147ec8a88bf60a88f1a5 to your computer and use it in GitHub Desktop.

Revisions

  1. gauravds created this gist Feb 8, 2024.
    65 changes: 65 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,65 @@
    version: '3.1'
    services:
    redis:
    image: redis:5-alpine
    platform: linux/amd64
    restart: unless-stopped
    container_name: redis
    ports:
    - '6379:6379'

    mysql:
    container_name: mysql
    image: mysql:8.0.28
    command: --default-authentication-plugin=mysql_native_password --sql_mode=NO_ENGINE_SUBSTITUTION
    restart: always
    platform: linux/amd64
    environment:
    MYSQL_ROOT_PASSWORD: root
    MYSQL_USER: dbuser
    MYSQL_PASSWORD: dbuser
    MYSQL_DATABASE: espocrm
    ports:
    - "3306:3306"

    phpmyadmin:
    image: phpmyadmin/phpmyadmin:latest
    restart: always
    platform: linux/amd64
    environment:
    PMA_HOST: mysql
    PMA_USER: root
    PMA_PASSWORD: root
    ports:
    - "33036:80"

    # mongo:
    # image: mongo:4.2.5
    # restart: unless-stopped
    # ports:
    # - 27017:27017
    # environment:
    # MONGODB_INITDB_ROOT_USERNAME: root
    # MONGODB_INITDB_ROOT_PASSWORD: root

    # mongo-express:
    # image: mongo-express:0.54
    # restart: unless-stopped
    # ports:
    # - 27027:8081
    # environment:
    # ME_CONFIG_MONGODB_ADMINUSERNAME: root
    # ME_CONFIG_MONGODB_ADMINPASSWORD: root

    # kafka:
    # image: landoop/fast-data-dev:2.6.2
    # restart: unless-stopped
    # container_name: kafka
    # ports:
    # - '2181:2181'
    # - '3030:3030'
    # - '8081-8083:8081-8083'
    # - '9581-9585:9581-9585'
    # - '9092:9092'
    # environment:
    # ADV_HOST: '127.0.0.1'