This is my first time using Google Cloud and my first time using Docker so I am quite lost. I'm trying to set up my own Firefly III server on Google Cloud using this docker_compose.yml file from the project's documentation. I successfully built and started the service on my local machine first.
In accordance with the answer by @ayoub-bensakhria on this question, I created the following cloudbuild.yaml file:
steps:
# running docker-compose
- name: 'docker/compose:1.26.2'
args: ['up', '-d', '-f ./docker_compose.yml', '--pull=always']
However, when I run gcloud builds submit --config ./cloudbuild.yaml
in the appropriate directory (all the files I need are in the same directory, no subdirectories), I get the following error:
ERROR: build step 0 "docker/compose:1.26.2" failed: step exited with non-zero status: 1
I tried replacing "docker/compose:1.26.2" with "docker/compose:latest" in the cloudbuild file with no success.
Oddly, if I run docker compose -f docker-compose.yml up -d --pull=always
directly in the gcloud console, it builds successfully. Of course, then I can't actually access the container from my devices so that's useless.