alvarosource/spring-webapp-compose-compose:0.1.0

Manifest digest

sha256:da8c21dea19b25be2741765093ffbe44892fabff4183298956b489548b07c542

Last pushed

4 months by alvarosource

Type

Compose

Manifest digest

sha256:da8c21dea19b25be2741765093ffbe44892fabff4183298956b489548b07c542

Compose file content

services:
  web:
    # image: eduamongus/spring-webapp-compose:0.1.0
    # image: dariogarciagomez/spring-webapp:1.0
    image: alvarosource/spring-webapp:1.0
    ports:
      - 8443:8443
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://db/plantazon_db?createDatabaseIfNotExist=true
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=Admin1234
    depends_on:
      db:
        condition: service_healthy

  db:
    image: mysql:8.0
    ports:
      - 3307:3306
    environment:
      - MYSQL_ROOT_PASSWORD=Admin1234
      - MYSQL_DATABASE=plantazon_db
    volumes:
      - db_data:/var/lib/mysql
    healthcheck:
      test: ["CMD-SHELL", "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://alvarosource/spring-webapp-compose-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

16153

Last Updated

6 days

Image


Pulls

161

Stars

0

Last Updated

4 months