Sign inSign up

varun935/compose-file:latest

Manifest digest

sha256:f885f11e6c37ef16b55af7d14b24b5a32eb0e5a22eea078a88ff5ad7ac5c71a9

Last pushed

about 1 month by varun935

Type

Compose

Manifest digest

sha256:f885f11e6c37ef16b55af7d14b24b5a32eb0e5a22eea078a88ff5ad7ac5c71a9

Compose file content

services:
  app:
    image: varun935/think_erp:latest
    restart: unless-stopped
    env_file:
      - 18c24610fe8cff94b7b2eb965c894f88761629655fd0110271d70cbbc41d124c.env
    environment:
      DB_HOST: db
      DB_PORT: 3306
    ports:
      - "8000:80"
    volumes:
      - app_storage:/var/www/html/storage
    depends_on:
      db:
        condition: service_healthy

  db:
    image: mysql:8
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-changeme}
      MYSQL_DATABASE: ${DB_DATABASE}
      MYSQL_USER: ${DB_USERNAME}
      MYSQL_PASSWORD: ${DB_PASSWORD}
    volumes:
      - db_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-p${DB_ROOT_PASSWORD:-changeme}"]
      interval: 5s
      timeout: 5s
      retries: 10
    # Deliberately no `ports:` mapping — MySQL is reachable only from the
    # `app` container on the compose network, never exposed to the internet.

volumes:
  app_storage:
  db_data:

Docker commands

docker compose -f oci://varun935/compose-file:latest up

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

Images used

Image + 1 more

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


Pulls

1B+

Stars

16185

Last Updated

5 days

Image


Pulls

46

Stars

0

Last Updated

about 1 month