Files
voyage/documentation/docs/troubleshooting/nginx_failed.md
alex d32fcb6fed chore: complete rebranding from seanmorley15 to Alex-Wiesner/voyage
Replace all seanmorley15/Voyage repo URLs, ghcr.io/seanmorley15 container
image references, seanmorley.com/sponsor and buymeacoffee links with
the new repo (github.com/Alex-Wiesner/voyage) and new GHCR images
(ghcr.io/alex-wiesner/voyage-*). Attribution to original AdventureLog
author Sean Morley is preserved.
2026-03-06 14:25:16 +00:00

2.2 KiB

Troubleshooting: Starting nginx: nginx failed! in the Backend Container

::: tip As of 1-10-2024, this should be resolved in the latest version of Voyage. If you are still experiencing this issue, please reach out to the Voyage community on Discord or GitHub for further assistance. :::

The Voyage backend container uses a built-in Nginx container with a built-in nginx config that relies on the name server to be the service name of the backend container. If the Nginx service fails to start in the backend container, the whole backend service will keep restarting and fail to start.

The primary reason for this error is changing the backend service name server to something different

If you're experiencing issues with the Nginx service failing to start in the backend container, follow these troubleshooting steps to resolve the issue.

1. Check the server Service Name:

  • Verify that the service name of the backend container is set to server in the docker-compose.yml file.
  • The service name should be set to server in the docker-compose.yml file. For example:
    server:
      image: ghcr.io/alex-wiesner/voyage-backend:latest
      container_name: voyage-backend
    

2. To keep the backend service name different:

  • If you want to keep the backend service name different from server, you can mount a custom Nginx configuration file to the backend container.

    • Get the default Nginx configuration file from the Voyage repository:
    wget https://raw.githubusercontent.com/Alex-Wiesner/voyage/refs/heads/main/backend/nginx.conf
    
    • Update the nginx.conf file to replace all occurrences of server with your custom service name.
    • Mount the custom Nginx configuration file to the backend container in the docker-compose.yml file. For example:
      server:
        image: ghcr.io/alex-wiesner/voyage-backend:latest
        container_name: voyage-backend
        volumes:
          - ./nginx.conf:/etc/nginx/nginx.conf
      

3. Restart the Backend Container:

These steps should help you resolve the issue with the Nginx service failing to start in the backend container. If you continue to face issues, please reach out to the Voyage community on Discord or GitHub for further assistance.