Sign inSign up

liveticket/liveticket-compose:1.0.0

Manifest digest

sha256:4478697715ae9567f513dbf0de229303eed47b534363b10a62d236fcced004fc

Last pushed

over 1 year by liveticket

Type

Compose

Manifest digest

sha256:4478697715ae9567f513dbf0de229303eed47b534363b10a62d236fcced004fc

Compose file content

# Docker compose that only uses public images
services:
  # Spring boot app container
  web:
    image: liveticket/liveticket:1.0.0
    ports: 
      - 8443:8443
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://database/liveticket
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=LiveTicket
    depends_on:
      database:
        condition: service_healthy

  # Database container
  database:
    image: mysql:latest
    environment:
      - MYSQL_ROOT_PASSWORD=LiveTicket
      - MYSQL_DATABASE=liveticket
    volumes:
      - database_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

# We create a volume in the DDBB container to persist information
volumes:
  database_data:

Docker commands

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

16191

Last Updated

less than a minute

Image


Pulls

84

Stars

0

Last Updated

over 1 year