sha256:e4027fd9cbd5e133e2f86bb9e890d227e1d20fc1256723628fbfc09b51f683d7
Last pushed
10 months by granlobo2004
Type
Compose
Manifest digest
sha256:e4027fd9cbd5e133e2f86bb9e890d227e1d20fc1256723628fbfc09b51f683d7
services:
api:
image: granlobo2004/levelestapi:0.2.0
platform: linux/amd64
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
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
volumes:
db_data:docker compose -f oci://granlobo2004/levelestapi-compose:0.2.0 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
16189
Last Updated
8 days