Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Point to Database Container with Compose File?

Featured Replies

I was wondering how I would alter the example to point to a mariadb container I already have installed from custom apps.

 

version: '3'
services:
  huginn:
    image: service/service
    restart: always
    ports:
      - "3000:3000"
    environment:
      - SERVICE_DB_ROOT_PASSWORD=
      - SERVICE_DB_PASSWORD=<your_db_password>
      - SERVICE_ADMIN_PASSWORD=<your_admin_password>
    volumes:
      - ./service-data:/var/lib/mysql

  mysql:
    image: mysql:5.7
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=<your_root_password>
      - MYSQL_DATABASE=huginn
      - MYSQL_USER=huginn
      - MYSQL_PASSWORD=<your_db_password>
    volumes:
      - ./mysql-data:/var/lib/mysql
    depends_on:
      - mysql

 

here is an example docker copoase file:

 

version: '3'
services:
  huginn:
    image: service/service
    restart: always
    ports:
      - "3000:3000"
    environment:
      - SERVICE_DB_HOST=mysql
      - SERVICE_DB_ROOT_PASSWORD=<your_root_password>
      - SERVICE_DB_PASSWORD=<your_db_password>
      - SERVICE_ADMIN_PASSWORD=<your_admin_password>
    volumes:
      - ./service-data:/var/lib/mysql
    depends_on:
      - mysql

  mysql:
    image: mysql:5.7
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=<your_root_password>
      - MYSQL_DATABASE=huginn
      - MYSQL_USER=huginn
      - MYSQL_PASSWORD=<your_db_password>
    volumes:
      - ./mysql-data:/var/lib/mysql

Yaml Syntax...

Review:
 

 

  • Author
6 hours ago, bmartino1 said:

Review:
 

 

 

Going off of this answer I got something like this: 

---
huginn: null
image: huginn/huginn
container_name: huginn
networks:
  default:
    name: bridge
    external: true
expose:
  - 3000
restart: unless-stopped
environment:
  - START_MYSQL=false
  - DATABASE_HOST=mariadb
  - DATABASE_PORT=3306
  - HUGINN_DATABASE_NAME=huginn
  - HUGINN_DATABASE_USERNAME=huginn
  - HUGINN_DATABASE_PASSWORD=REDACTED
  - TZ=America/Chicago
  - TIMEZONE=Chicago

 

But now Im getting a new error: (root) Additional property restart is not allowed.

ask ai...

quite a bit wrong

 

null

network

error is do to restart unles stopped.. otherwise pw for mysql...

 

The error (root) Additional property restart is not allowed typically occurs when you're using a docker-compose file with a syntax or structure that doesn't align with the version of the Docker Compose schema you're using.

In your configuration, the restart policy is specified in a way that might not be allowed depending on your Compose file version. Starting from Compose v3, the restart policy needs to be part of the deploy section for the services level. However, the deploy section is only supported with Docker Swarm mode, not with standalone Docker Compose.

Here's how you can adjust your configuration depending on your needs:

Option 1: Adjust for Compose v3 (Recommended for Swarm)
If you're using Compose v3 and running in Swarm mode, the restart policy should go under deploy:

 

version: '3.8'

services:
  huginn:
    image: huginn/huginn
    container_name: huginn
    networks:
      default:
        name: bridge
        external: true
    expose:
      - 3000
    deploy:
      restart_policy:
        condition: any
    environment:
      - START_MYSQL=false
      - DATABASE_HOST=mariadb
      - DATABASE_PORT=3306
      - HUGINN_DATABASE_NAME=huginn
      - HUGINN_DATABASE_USERNAME=huginn
      - HUGINN_DATABASE_PASSWORD=REDACTED
      - TZ=America/Chicago
      - TIMEZONE=Chicago

In this case:

deploy.restart_policy.condition: any is used to define the restart policy.

Option 2: Use Compose v2 Syntax (For Standalone Compose)

If you're not in Swarm mode and need standalone Docker Compose compatibility, use Compose v2 syntax and keep the restart option at the service level:

version: '2.4'

services:
  huginn:
    image: huginn/huginn
    container_name: huginn
    networks:
      default:
        external: true
    expose:
      - 3000
    restart: unless-stopped
    environment:
      - START_MYSQL=false
      - DATABASE_HOST=mariadb
      - DATABASE_PORT=3306
      - HUGINN_DATABASE_NAME=huginn
      - HUGINN_DATABASE_USERNAME=huginn
      - HUGINN_DATABASE_PASSWORD=REDACTED
      - TZ=America/Chicago
      - TIMEZONE=Chicago

Key Differences

Compose v3+ (deploy.restart_policy) is for Swarm mode.

Compose v2 (restart: unless-stopped) works for standalone setups.

 

not enoth info... better if you ask ai.

https://docs.docker.com/compose/

 

docker run to docker file:

https://www.composerize.com/

 

look and grab unraid maria db docker run....

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.