Sign inSign up

ivchicano/dad2324:latest

Manifest digest

sha256:ad4b50639759153a6d2deb33924712166b9559b9eb0a9a95ccf21d8c9b3a0437

Last pushed

over 1 year by ivchicano

Type

Compose

Manifest digest

sha256:ad4b50639759153a6d2deb33924712166b9559b9eb0a9a95ccf21d8c9b3a0437

Compose file content

services:
  db:
    image: mysql:8
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=eoloparks
    volumes:
      - db_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-ppassword"]
      interval: 5s
      timeout: 5s
      start_period: 10s
      retries: 5
    ports:
      - 3306:3306
  rabbitmq:
    image: 'rabbitmq:3-management'
    ports:
      - 15672:15672
      - 5672:5672
    healthcheck:
      test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
      interval: 5s
      timeout: 5s
      start_period: 10s
      retries: 5
  geoservice:
    image: 'ivchicano/practicadad2324-geoservice'
  windservice:
    image: 'ivchicano/practicadad2324-windservice'
  planner:
    image: 'ivchicano/practicadad2324-planner'
    environment:
      - GRPC_CLIENT_WINDSERVER_ADDRESS=static://windservice:9090
      - GEOSERVICE_URL=http://geoservice:8082
      - SPRING_RABBITMQ_HOST=rabbitmq
    command: >
      ./wait-for-it.sh geoservice:8082 --
      ./wait-for-it.sh windservice:9090 --
      ./wait-for-it.sh rabbitmq:5672 --
      java -jar planner.jar
    healthcheck:
      test: ["CMD-SHELL", "wget --quiet --tries=1 --spider http://localhost:8081/actuator/health || exit 1"]
      interval: 5s
      timeout: 5s
      start_period: 10s
      retries: 5
    depends_on:
      - geoservice
      - windservice
      - rabbitmq
    ports:
      - 8081:8081
  server:
    image: 'ivchicano/practicadad2324-server'
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/eoloparks
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=password
      - SPRING_RABBITMQ_HOST=rabbitmq
    ports:
      - 443:8443
    depends_on:
      db:
        condition: service_healthy
      rabbitmq:
        condition: service_healthy
      planner:
        condition: service_healthy

volumes:
  db_data:

Docker commands

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

16191

Last Updated

2 days