blasetvrtumi/rarecips:0.2-compose

Manifest digest

sha256:55a3c06ec3b3fd6bf80d0d40f7b395aaf27ebd1caeb9f4382a338fa0b8eb1117

Last pushed

3 months by blasetvrtumi

Type

Compose

Manifest digest

sha256:55a3c06ec3b3fd6bf80d0d40f7b395aaf27ebd1caeb9f4382a338fa0b8eb1117

Compose file content

# In project root:
# docker pull blasetvrtumi/rarecips
# cd docker
# docker-compose -p rarecips up --build

services:

  rarecips-app:

    container_name: rarecips-app
    image: blasetvrtumi/rarecips:latest
    build:
      context: ../
      dockerfile: docker/Dockerfile
    ports:
      - "8443:8443"
    depends_on:
      rarecips-DB:
        condition: service_healthy
    command: [ "/bin/sh", "-c", "./wait-for-it.sh rarecips-DB:3306 --timeout=20 -- && java -jar /app/rarecips-0.2.0.jar" ]
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mysql://rarecips-DB:3306/rarecips?useSSL=false&allowPublicKeyRetrieval=true
      - SPRING_DATASOURCE_USERNAME=root
      - SPRING_DATASOURCE_PASSWORD=password
    secrets:
      - source: env_properties
        target: /run/secrets/env.properties

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

volumes:
  mysql:

secrets:
  env_properties:
    file: ../backend/src/main/resources/env.properties

Docker commands

docker compose -f oci://blasetvrtumi/rarecips:0.2-compose 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

Compose + 1 more


Pulls

2.4K

Stars

0

Last Updated

about 1 month