Skip to content

description in .env is wrong ? #644

Description

@roshan0099

The bug

.env says i can add multiple domains and i tried that which was throwing me error and container was in a loop restarting

Image

container logs

Image

Operating System that is running AirTrail

linux

AirTrail Version

v3.11

Your docker-compose.yml content

services:
  db:
    container_name: airtrail_db
    image: postgres:16-alpine
    restart: always
    env_file:
      - .env
    environment:
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
    volumes:
      - db_data:/var/lib/postgresql/data
    healthcheck:
      test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE_NAME}']
      interval: 5s
      timeout: 5s
      retries: 5
  airtrail:
    container_name: airtrail
    image: johly/airtrail:latest
    restart: always
    env_file:
      - .env
    ports:
      - 3000:3000
    volumes:
      # Required for file uploads (e.g., airline icons)
      # The path to the right of the colon needs to match UPLOAD_LOCATION in your .env file
      # It needs to be writable for UID:GID 1000:1000
      - uploads:/app/uploads
      # If docker isn't running as UID 1000 on your host, consider using a bind mount volume instead, such as:
      # - ./data/uploads:/app/uploads
      # and create the folder ./data/uploads with UID:GID 1000:1000
    depends_on:
      db:
        condition: service_healthy

volumes:
  db_data:
  uploads:

Your .env content

# Your domain, e.g https://example.com
# You might have to add :443 if you are using https through a reverse proxy
# If you need to provide multiple domains, pass a comma-separated list instead
ORIGIN=http://localhost:3000,http://192.168.55.208:3000

# The database URL used by the application.
# If you are using the provided docker-compose file, you should only change the "password" part of the URL
# If you are using your own database, you should change this to the correct URL
#                          ∨∨∨∨∨∨∨∨
DB_URL=postgres://airtrail:password@db:5432/airtrail
#                                   ∧∧
# Change "db" to "localhost" if you are developing locally

# Values below this line are only for the default provided postgres database
###################################################################################
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
# When you change the DB_PASSWORD, you should also update the DB_URL accordingly
DB_PASSWORD=password

# The values below this line do not need to be changed
###################################################################################
DB_DATABASE_NAME=airtrail
DB_USERNAME=airtrail

# File Uploads (optional)
###################################################################################
# Path to store uploaded files (e.g., airline icons)
# If not set, file uploads will be disabled
# For Docker: Use a path inside the container that's mounted to a volume (e.g., /app/uploads)
# For local development: Use an absolute path on your system
UPLOAD_LOCATION=/app/uploads

Reproduction steps

  1. Got the .env and compose file into my server
  2. changed the ORIGIN
  3. Container on restart loop
    ...

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions