HUB
Sign inSign up

marcospbm/mylibrum-compose:1.0.0

Manifest digest

sha256:f372263d7e5e204276c9c12a2ad18c26d986b458c90135377540de0f8fd9df01

Last pushed

21 days by marcospbm

Type

Compose

Manifest digest

sha256:f372263d7e5e204276c9c12a2ad18c26d986b458c90135377540de0f8fd9df01

Compose file content

services:
  postgres:
    image: postgres:16-alpine
    container_name: mylibrum-postgres
    restart: unless-stopped
    environment:
      POSTGRES_DB: ${POSTGRES_DB:-librumDb}
      POSTGRES_USER: ${POSTGRES_USER:-postgres}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-root}
    ports:
      - target: 5432
        published: "${POSTGRES_PORT:-5433}"
    volumes:
      - mylibrum-postgres-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
      interval: 5s
      timeout: 5s
      retries: 10

  backend:
    image: marcospbm/mylibrum-backend:1.0.0
    build:
      # o Docker clona este repo e usa o Dockerfile da raiz dele
      context: https://github.com/Librum-SGB/BACK.git#main:mylibrum
      dockerfile: Dockerfile
    container_name: mylibrum-backend
    restart: unless-stopped
    depends_on:
      postgres:
        condition: service_healthy
    environment:
      SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB:-librumDb}
      POSTGRES_USER: ${POSTGRES_USER:-postgres}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-root}
      SPRING_DOCKER_COMPOSE_ENABLED: "false"
      JWT_SECRET: ${JWT_SECRET:-bXlsaWJydW0tc2VjcmV0LWtleS1mb3ItZGV2LW9ubHktMzItYnl0ZXM=}
      JWT_EXPIRATION_MS: ${JWT_EXPIRATION_MS:-3600000}
    ports:
      - target: 8184
        published: "${BACKEND_PORT:-8184}"

  frontend:
    image: marcospbm/mylibrum-frontend:1.0.0
    build:
      #      context: https://github.com/Librum-SGB/BACK.git#main:mylibrum
      context: https://github.com/Librum-SGB/FRONT.git#main:Librum
      dockerfile: Dockerfile
    container_name: mylibrum-frontend
    restart: unless-stopped
    depends_on:
      - backend
    ports:
      - target: 80
        published: "${FRONTEND_PORT:-4200}"

volumes:
  mylibrum-postgres-data:

Docker commands

docker compose -f oci://marcospbm/mylibrum-compose:1.0.0 up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

Image + 1 more

The PostgreSQL object-relational database system provides reliability and data integrity.


Pulls

1B+

Stars

15057

Last Updated

about 24 hours

Image


Pulls

69

Stars

0

Last Updated

21 days

Image


Pulls

58

Stars

0

Last Updated

21 days