Sign inSign up

allen7wang/easemob-1v1-infra:v1

Manifest digest

sha256:bda63a3fe4bbf61305dec4f019e99db9327c1551da9926ece12230f01ee4e0f8

Last pushed

18 days by allen7wang

Type

Compose

Manifest digest

sha256:bda63a3fe4bbf61305dec4f019e99db9327c1551da9926ece12230f01ee4e0f8

Compose file content

name: easemob-1v1

services:
  mysql:
    image: docker.io/library/mysql:8.0
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: ${MYSQL_DATABASE:?set MYSQL_DATABASE in .env}
      MYSQL_USER: ${MYSQL_USER:?set MYSQL_USER in .env}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:?set MYSQL_PASSWORD in .env}
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?set MYSQL_ROOT_PASSWORD in .env}
    ports:
      - target: 3306
        published: "${MYSQL_HOST_PORT:-3306}"
        host_ip: 127.0.0.1
        protocol: tcp
    volumes:
      - mysql-data:/var/lib/mysql
    healthcheck:
      test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -p\"$$MYSQL_ROOT_PASSWORD\" --silent"]
      interval: 10s
      timeout: 5s
      retries: 12
      start_period: 30s
    networks:
      - easemob-1v1

  redis:
    image: docker.io/library/redis:7-alpine
    restart: unless-stopped
    command: ["redis-server", "--appendonly", "yes"]
    ports:
      - target: 6379
        published: "${REDIS_HOST_PORT:-6379}"
        host_ip: 127.0.0.1
        protocol: tcp
    volumes:
      - redis-data:/data
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 12
    networks:
      - easemob-1v1

networks:
  easemob-1v1:

volumes:
  mysql-data:
  redis-data:

Docker commands

docker compose -f oci://allen7wang/easemob-1v1-infra:v1 up

Use the above command to pull and run the Compose file. Learn more.

Images used

Image + 1 more

Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.


Pulls

1B+

Stars

13616

Last Updated

about 10 hours

Image + 1 more

MySQL is a widely used, open-source relational database management system (RDBMS).


Pulls

1B+

Stars

16185

Last Updated

8 days