FusionAuth with Fly.io
-
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 wasFROM 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
looksversion: '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? -
For future readers, @duke wrote up an entire article about this: https://medium.com/@osain/deploying-fusionauth-docker-on-fly-io-8fbeb0469556