Sign inSign up

alefval66/zendashop-compose:0.1.0

Manifest digest

sha256:a854cf474ff23fcea17520d6dcfca3fe7eef45ab7e181184646b14c91b1a61c2

Last pushed

6 months by alefval66

Type

Compose

Manifest digest

sha256:a854cf474ff23fcea17520d6dcfca3fe7eef45ab7e181184646b14c91b1a61c2

Compose file content

services:
  web:
    image: ${DOCKERHUB_USER}/zendashop:0.0.1
    ports:
      - "8443:8443"
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://db/${DB_NAME:-zenda}
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=${DB_PASSWORD:-password}
      - SPRING_JPA_HIBERNATE_DDL_AUTO=${DDL_AUTO:-none}
    depends_on:
      db:
        condition: service_healthy
  db:
    image: mysql:latest
    environment:
      - MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-password}
      - MYSQL_DATABASE=${DB_NAME:-zenda}
    volumes:
      - db_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-p$$MYSQL_ROOT_PASSWORD"]
      interval: 5s
      timeout: 5s
      start_period: 10s
      retries: 5

      
volumes:
  db_data:

Docker commands

docker compose -f oci://alefval66/zendashop-compose:0.1.0 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

4 days