Sign inSign up

ivchicano/test:latest

Manifest digest

sha256:76b136b0d4b798add921c56b4a4055a99dfd87912d18db590f0caea7d6fd16c5

Last pushed

over 1 year by ivchicano

Type

Compose

Manifest digest

sha256:76b136b0d4b798add921c56b4a4055a99dfd87912d18db590f0caea7d6fd16c5

Compose file content

services: 
  web:
    image: codigusdev/spring-webapp:mysql
    ports:
      - 8080:8080
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://db/test
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=password
    depends_on:
      db:
        condition: service_healthy
  db:
    image: mysql:9.2
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=test
    volumes:
      - db_data:/var/lib/mysql
    healthcheck:
      test: "mysqladmin --user=root --password=$$MYSQL_ROOT_PASSWORD -h localhost ping"
      interval: 5s
      timeout: 5s
      start_period: 10s
      retries: 5

volumes:
  db_data:
    driver: local
    driver_opts:
      type: none
      device: ./mysql
      o: bind

Docker commands

docker compose -f oci://ivchicano/test: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

6 days

Image


Pulls

206

Stars

0

Last Updated

7 months