• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

FusionAuth with Fly.io

Scheduled Pinned Locked Moved Unsolved
Q&A
docker docker-compose documentation developers postgres
2
2
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    duke
    last edited by 23 Aug 2022, 11:11

    Hey, Am trying to deploy fusionauth to fly.io using docker image.

    I have been going through and trying different method to build and deploy docker the image but no lock yet.

    I tried building the docker image from as mention https://fusionauth.io/download with docker option.
    For this test my dockerFile was

    FROM debian:buster-slim
    RUN apt-get update && apt-get install -y \
        curl \
        ca-certificates
    RUN curl -o docker-compose.yml https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/docker-compose.yml && curl -o .env https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/.env && docker-compose up
     
    
    Step 8/13 : RUN sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z"
     ---> Running in e3ad682f1af2
    sh: 64: [[: not found
    Illegal option -z
    FusionAuth FastPath(tm) installer
    
    Usage:
      ./install.sh [options]
    
    OPTIONS:
      -s   Include the search engine with this install. Defaults to database search if this is not present.
      -h   Display this message.
    
    Environment:
      TARGET_DIR  Choose a location to install to if using the zip. Defaults to $PWD/fusionauth.
      VERSION     Choose a version to install. Defaults to the latest stable version.
    The command '/bin/sh -c sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z"' returned a non-zero code: 1
    
    

    I also tried using the docker-compose as mentioned https://fusionauth.io/docs/v1/tech/installation-guide/docker just to mention Fly.oi only support docker image and we already have postgres deployed.

    My docker-compose.yml looks

    version: '3'
    
    services:
      fusionauth:
        image: fusionauth/fusionauth-app:latest
        restart: unless-stopped
        ports:
          - 9011:9011
        volumes:
          - fa_config:/usr/local/fusionauth/config
    
    volumes:
      db_data:
      fa_config:
    
    

    I have also tried as shown below but am not sure the entry point or the path to run the app from the FusionAuth docker image.

    the dockerfile

    FROM  fusionauth/fusionauth-app:latest
    FROM debian:buster-slim
    RUN apt-get update && apt-get install -y \
        --no-install-recommends
    
    RUN groupadd -g 999 appuser && \
        useradd -r -u 999 -g appuser appuser
    WORKDIR /fusionauth
    RUN chown appuser /fusion_auth
    USER appuser
    COPY . .
    CMD ["what should be here  ? "]
    

    So my question is how to deploy Fusionauth app using docker image?

    D 1 Reply Last reply 14 Oct 2022, 14:32 Reply Quote 0
    • D
      dan @duke
      last edited by 14 Oct 2022, 14:32

      For future readers, @duke wrote up an entire article about this: https://medium.com/@osain/deploying-fusionauth-docker-on-fly-io-8fbeb0469556

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • First post
        Last post