Sign inSign up

jcl4332/image-compose:latest

Manifest digest

sha256:5b1720023c22af3eef782bbb64534348e1a345c0f0a2837a1c313626920f9996

Last pushed

6 months by jcl4332

Type

Compose

Manifest digest

sha256:5b1720023c22af3eef782bbb64534348e1a345c0f0a2837a1c313626920f9996

Compose file content

services: 
  web:
    image: <docker_hub_username>/lcdd_daw:latest  # Change '<docker_hub_username>' to a group member Docker Hub username
    ports:
      - 8443:8443
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://db/lcdd_daw
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=MySQLpassword
    depends_on:
      db:
        condition: service_healthy
  db:
    image: mysql:9.6
    environment:
      - MYSQL_ROOT_PASSWORD=MySQLpassword
      - MYSQL_DATABASE=lcdd_daw
    volumes:
      - db_data:/var/lib/mysql
    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 commands

docker compose -f oci://jcl4332/image-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

16189

Last Updated

9 days