Sign inSign up

atrigueror/ladob-compose:latest

Manifest digest

sha256:04a14f2b0389e0e44b1d3a9481f33d1db463a69c5c7f51b9ff77243531f28d62

Last pushed

3 months by atrigueror

Type

Compose

Manifest digest

sha256:04a14f2b0389e0e44b1d3a9481f33d1db463a69c5c7f51b9ff77243531f28d62

Compose file content

services:
  db:
    image: mysql:8.4
    container_name: ladob-db
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: ladob
      MYSQL_USER: ladob
      MYSQL_PASSWORD: Th1$$1$$MyP@$$$$W0Rd
      MYSQL_ROOT_PASSWORD: Th1$$1$$MyP@$$$$W0Rd
    volumes:
      - mysql-data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "--password=Th1$$1$$MyP@$$$$W0Rd", "--silent"]
      interval: 5s
      timeout: 5s
      retries: 20
      start_period: 20s

  app:
    image: atrigueror/ladob-api:latest
    container_name: ladob-app
    ports:
      - "8443:8443"
      - "8080:8080"
    environment:
      SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/ladob?createDatabaseIfNotExist=true&useSSL=false&allowPublicKeyRetrieval=true
      SPRING_DATASOURCE_USERNAME: root
      SPRING_DATASOURCE_PASSWORD: Th1$$1$$MyP@$$$$W0Rd
      SPRING_JPA_HIBERNATE_DDL_AUTO: ${DDL_AUTO:-none}
    depends_on:
      db:
        condition: service_healthy

volumes:
  mysql-data:

Docker commands

docker compose -f oci://atrigueror/ladob-compose: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

about 3 hours

Image


Pulls

265

Stars

0

Last Updated

3 months