Not found error on login page

Hi!

I set up the fire zone using docker install script and when I am trying to login there is no login page(Not Found returned). On an index page all resources(pictures, scripts, styles) also cannot be found. How can I troubleshoot this behaviour?

Could you paste your docker-compose.yml and list the steps to reproduce? Thanks!

Yeah, sure.

I installed docker on my VPS and rant the script from documentation

bash <(curl -fsSL https://github.com/firezone/firezone/raw/master/scripts/install.sh)

BTW docker is working correctly, proxying on caddy also working and I receive messages like this in logs of firezone container

15:25:36.093 request_id=FyJFDW_ZCc6A6qIAAAGD [info] GET /{domain}/dist/root-{some-hash}.js
15:25:36.094 request_id=FyJFDW_bIJMoCSkAAARB [info] GET /domain/dist/root-{some-hash}.css
15:25:36.094 request_id=FyJFDW_bIJMoCSkAAARB remote_ip={ip} [info] Sent 404 in 206µs
15:25:36.094 request_id=FyJFDW_ZCc6A6qIAAAGD remote_ip={ip} [info] Sent 404 in 878µs

My docker compose file generated by install script is following

# Example compose file for production deployment.
#
# Note: This file is meant to serve as a template. Please modify it
# according to your needs. Read more about Docker Compose:
#
# https://docs.docker.com/compose/compose-file/
#
#
x-deploy: &default-deploy
  restart_policy:
    condition: on-failure
    delay: 5s
    max_attempts: 3
    window: 120s
  update_config:
    order: start-first

version: '3.7'

services:
  caddy:
    image: caddy:2
    volumes:
      - ${FZ_INSTALL_DIR:-.}/caddy:/data/caddy
    ports:
      - 80:80
      - 443:443
        # See Caddy's documentation for customizing this line
        # https://caddyserver.com/docs/quick-starts/reverse-proxy
    command: caddy reverse-proxy --to firezone:13000 --from ${EXTERNAL_URL:?err} ${CADDY_OPTS}
    deploy:
      <<: *default-deploy

  firezone:
    image: firezone/firezone
    ports:
      - 51820:51820/udp
    env_file:
      # This should contain a list of env vars for configuring Firezone.
      # See https://docs.firezone.dev/reference/env-vars for more info.
      - ${FZ_INSTALL_DIR:-.}/.env
    volumes:
      # IMPORTANT: Persists WireGuard private key and other data. If
      # /var/firezone/private_key exists when Firezone starts, it is
      # used as the WireGuard private. Otherwise, one is generated.
      - ${FZ_INSTALL_DIR:-.}/firezone:/var/firezone
    cap_add:
      # Needed for WireGuard and firewall support.
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      # Needed for masquerading and NAT.
      - net.ipv6.conf.all.disable_ipv6=0
      - net.ipv4.ip_forward=1
      - net.ipv6.conf.all.forwarding=1
    depends_on:
      - postgres
    deploy:
      <<: *default-deploy

  postgres:
    image: postgres:15
    volumes:
      - ${FZ_INSTALL_DIR:-.}/postgres:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: ${DATABASE_NAME:-firezone}
      POSTGRES_USER: ${DATABASE_USER:-postgres}
      POSTGRES_PASSWORD: ${DATABASE_PASSWORD:?err}
    deploy:
      <<: *default-deploy
      update_config:
        order: stop-first

Very strange. Looks like your Docker image is missing assets, or Caddy can’t find them for some reason. Is this with 0.6.5?

I am not sure how to check version. I can paste here the hash of docker image of firezone sha256:949fdc8976b46ecb8fcf788dacfd678a48cb6a10eff0b2c38043e0c941a5d8c3. How can I inspect the assets location? Can I provide assets location to firezone server manually via config?