sha256:c1f5ad7bcad78391195958e1a21e4a4a19b2047dfdbb2152abcdf5003c1ead78
Last pushed
10 months by granlobo2004
Type
Compose
Manifest digest
sha256:c1f5ad7bcad78391195958e1a21e4a4a19b2047dfdbb2152abcdf5003c1ead78
version: '3.8'
services:
# Servicio de la API
api:
image: granlobo2004/levelestapi:0.2.0b
ports:
- "8080:8080"
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", "http://localhost:8080/users/"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# 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:0.2.0b
environment:
- API_URL=http://api:8080 # URL para conectarse a la API
ports:
- "3000:3000" # O el puerto que necesites
depends_on:
api:
condition: service_healthy
volumes:
db_data:
docker compose -f oci://granlobo2004/levelestapp-compose:0.2.0b upUse the above command to pull and run the Compose file. Learn more.
MySQL is a widely used, open-source relational database management system (RDBMS).
Pulls
1B+
Stars
16185
Last Updated
8 days