HUB
Sign inSign up
movie-app logo

jackblaze/movie-app

By jackblaze

•Updated about 2 years ago

Developed by: - Eder D. Martinez - Mariana M. Meneses - Maria J. Horta

Image
API management
0

50K+

jackblaze/movie-app repository overview

⁠MovieApp API

⁠Usage

  • Use the following command to pull the image.
docker pull jackblaze/movie-app:latest
  • Then create a docker-compose.yaml and copy this code into it. NOTE: you can change the environment variables as you wish
  version: '3.8'
  services:
    mysql:
      image: mysql:8.0
      container_name: mysql
      environment:
        MYSQL_ROOT_PASSWORD: Admin32.
        MYSQL_DATABASE: dbmovies
      ports:
        - "3306:3306"
      volumes:
          - mysql-data:/var/lib/mysql
      healthcheck:
        test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
        interval: 5s
        timeout: 5s
        retries: 5

    app:
      image: jackblaze/movie-app
      container_name: springboot-movie-app
      ports:
        - "8080:8080"
      environment:
        SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/dbmovies
        SPRING_DATASOURCE_USERNAME: root
        SPRING_DATASOURCE_PASSWORD: Admin32.
        SPRING_JPA_HIBERNATE_DDL_AUTO: update
      depends_on:
        mysql:
          condition: service_healthy
  volumes:
    mysql-data:

  • Finally, open the terminal in the path where docker-compose.yaml file is located and insert the following command.
docker-compose up

Now you are ready to use our MovieApp API

⁠Hope you enjoy!! 🫰

Tag summary
Recent tags
Content type
Image
Digest
sha256:1babd9989…
Size
251 MB
Last updated
about 2 years ago
docker pull jackblaze/movie-app:latest