Sign inSign up

granlobo2004/levelestapi-compose:1.0.0

Manifest digest

sha256:0e177c515985d5c7d5f4074dd4b9e570d597602a557bc39c535cddb1e1b47d68

Last pushed

9 months by granlobo2004

Type

Compose

Manifest digest

sha256:0e177c515985d5c7d5f4074dd4b9e570d597602a557bc39c535cddb1e1b47d68

Compose file content

version: '3.8'

services:
  # Servicio de la API
  api:
    image: granlobo2004/levelestapi:1.0.0
    ports:
      - "8443:8443"
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/levelestapi
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=password
    depends_on:
      db:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "curl", "-f", "https://api:8443/users/"]
      interval: 5s
      timeout: 5s
      retries: 5
      start_period: 10s

  # Servicio de la base de datos (MySQL)
  db:
    image: mysql:9.2
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=levelestapi
    volumes:
      - db_data:/var/lib/mysql
    ports:
      - "3306:3306"
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-p$MYSQL_ROOT_PASSWORD"]
      interval: 5s
      timeout: 5s
      start_period: 10s
      retries: 5

  # Nuevo servicio para la imagen levelest (esperando a que api esté listo)
  web:
    image: granlobo2004/levelest:1.0.0
    environment:
    - API_URL=https://api:8443  # URL para conectarse a la API
    ports:
      - "3443:3443"  # O el puerto que necesites
   
    depends_on:
      api:
        condition: service_healthy
volumes:
  db_data:

Docker commands

docker compose -f oci://granlobo2004/levelestapi-compose:1.0.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

5 days

Image


Pulls

374

Stars

1

Last Updated

9 months

Image


Pulls

260

Stars

0

Last Updated

9 months