rodrigofdcg/nexgym-compose:1.0.0

Manifest digest

sha256:3293724a50bf82473b25702de225e26de5efd941cd00dc8174473a05c48e5ccc

Last pushed

2 months by rodrigofdcg

Type

Compose

Manifest digest

sha256:3293724a50bf82473b25702de225e26de5efd941cd00dc8174473a05c48e5ccc

Compose file content

version: '3.8'

services:
  mysql-db:
    image: mysql:8.0
    container_name: nexgym-mysql
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: nexgym
    ports:
      - "3306:3306"
    volumes:
      - mysql-data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
      interval: 10s
      timeout: 5s
      retries: 5

  utility-service:
    image: nexgym-email-service-app:1.0.0
    build:
      context: ./utilityService
      dockerfile: docker/Dockerfile
    container_name: nexgym-utility
    ports:
      - "8080:8080"
    environment:
      - SPRING_PROFILES_ACTIVE=docker

  backend:
    image: nexgym-backend-app:1.0.0
    build:
      context: ./backend
      dockerfile: docker/Dockerfile
    container_name: nexgym-backend
    ports:
      - "8443:8443"
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://mysql-db:3306/nexgym
      - UTILITY_SERVICE_URL=http://utility-service:8080/api/v1/email
    depends_on:
      mysql-db:
        condition: service_healthy
      utility-service:
        condition: service_started

volumes:
  mysql-data:

Docker commands

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

16153

Last Updated

5 days