HUB
Sign inSign up

deliaml10/kombo-compose:dev

Manifest digest

sha256:b9b6dc7d930a02f62838db67b7cb472ba600122558afbf115a41e4858c7c786c

Last pushed

4 days by deliaml10

Type

Compose

Manifest digest

sha256:b9b6dc7d930a02f62838db67b7cb472ba600122558afbf115a41e4858c7c786c

Compose file content

# Kombo version 0.1: image published in DockerHub and MySQL database.
# From the root of the repository (where the .env file is):
#   cp .env.example .env   (and change the values)
#   docker compose --env-file .env -f docker/docker-compose.yml up -d
# The application is at https://localhost (self-signed certificate).
name: kombo

services:
  db:
    image: mysql:8.4
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: ${KOMBO_DB_PASSWORD:?Set KOMBO_DB_PASSWORD in the .env file}
      MYSQL_DATABASE: kombo
    volumes:
      - db-data:/var/lib/mysql
    # Connects over TCP (127.0.0.1): while MySQL initialises the database it runs a temporary
    # server without networking, so this only succeeds when the real server is ready.
    # "$$" makes Compose pass "$MYSQL_ROOT_PASSWORD" to the container shell instead of replacing it.
    healthcheck:
      test: ["CMD-SHELL", "mysql -h 127.0.0.1 -uroot -p$$MYSQL_ROOT_PASSWORD -e 'SELECT 1' > /dev/null 2>&1"]
      interval: 5s
      timeout: 5s
      retries: 30
      start_period: 20s

  app:
    image: deliaml10/kombo:dev
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
    ports:
      - "443:8443"
    environment:
      KOMBO_DB_URL: jdbc:mysql://db:3306/kombo
      KOMBO_DB_PASSWORD: ${KOMBO_DB_PASSWORD}
      KOMBO_ADMIN_EMAIL: ${KOMBO_ADMIN_EMAIL:[email protected]}
      KOMBO_ADMIN_PASSWORD_HASH: ${KOMBO_ADMIN_PASSWORD_HASH:?Set KOMBO_ADMIN_PASSWORD_HASH in the .env file}
      KOMBO_JWT_SECRET: ${KOMBO_JWT_SECRET:?Set KOMBO_JWT_SECRET in the .env file}
      KOMBO_SSL_KEY_STORE_PASSWORD: ${KOMBO_SSL_KEY_STORE_PASSWORD:?Set KOMBO_SSL_KEY_STORE_PASSWORD in the .env file}
      KOMBO_SAMPLEDATA_ENABLED: ${KOMBO_SAMPLEDATA_ENABLED:-true}
    volumes:
      - certs:/app/certs

volumes:
  db-data:
  certs:

Docker commands

docker compose -f oci://deliaml10/kombo-compose:dev 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

16199

Last Updated

18 days

Image


Pulls

131

Stars

0

Last Updated

4 days