Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Suggestion: Ayon #1071

Open
Mikfr83 opened this issue Feb 8, 2024 · 2 comments
Open

App Suggestion: Ayon #1071

Mikfr83 opened this issue Feb 8, 2024 · 2 comments

Comments

@Mikfr83
Copy link

Mikfr83 commented Feb 8, 2024

I would like to deploy this open-source pipeline platform for creative studios:
https://github.com/ynput/ayon-docker
https://ayon.ynput.io/docs/admin_server_deployment

I made a yaml config, and the deployment run well.
But the Ayon server container makes this error:
_srv-captain--ayon.1.82fg22sxvqxxuicj34joxj847_logs.txt

It would be great if someone could take a look!

captainVersion: 4
services:
    $$cap_appname-postgres:
        image: postgres:$$cap_db_version
        restart: unless-stopped
        volumes:
            - $$cap_appname-postgres:/var/lib/postgresql/data
        environment:
            POSTGRES_USER: admin
            POSTGRES_PASSWORD: $$cap_db_password
            POSTGRES_DB: ayon
        expose:
            - 5432
        caproverExtra:
            notExposeAsWebApp: true

    $$cap_appname-redis:
        image: redis:alpine
        restart: unless-stopped
        volumes:
            - $$cap_appname-redis:/data
        expose:
            - 6379
        caproverExtra:
            notExposeAsWebApp: true

    $$cap_appname:
        image: ynput/ayon:$$cap_ayon_version
        restart: unless-stopped
        depends_on:
            - $$cap_appname-postgres
            - $$cap_appname-redis
        volumes:
            - $$cap_appname:/addons
            - $$cap_appname:/storage
        expose:
            - 5000
        ports:
            - 5000:5000
        caproverExtra:
            containerHttpPort: 5000

caproverOneClickApp:
    variables:
        - id: $$cap_ayon_version
          label: Ayon Version
          defaultValue: 1.0.2-20240131
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/ynput/ayon/tags
          validRegex: /^([^\\s^\\/])+$/
        - id: $$cap_db_version
          label: Postgres Version
          defaultValue: 15
          description: Check out their Docker page for the valid tags https://hub.docker.com/_/postgres/tags
          validRegex: /^([^\\s^\\/])+$/
        - id: $$cap_db_password
          label: Postgres Password
          description: Administrator password for Postgres DB.
    instructions:
        start: |-
            Ayon is open source pipeline platform for creative studios and remote teams.

            More details:
            https://github.com/ynput
            https://ayon.ynput.io/features
        end: |-
            Ayon server has been successfully deployed!
    displayName: Ayon
    isOfficial: true
    description:  Open-source pipeline platform for creative studios and remote teams.
    documentation: See https://ayon.ynput.io/features
@githubsaturn
Copy link
Collaborator

The error that you posted is an application error, not CapRover error. Meaning that Ayon itself has a problem with the docker container. You need to contact Ayon's maintainer.

@githubsaturn
Copy link
Collaborator

Hmm I am guessing it's the fact that they "assume" the postgress container is named postgress which is a bad practice.

There should be an env variable allowing you to define the address of the postgres container, which is your case should be srv-captain--$$cap_appname-postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants