Package tracker for DHL with notifications #13

Closed
opened 2024-10-15 07:21:38 +00:00 by Erik · 2 comments
Owner
https://github.com/karrioapi/karrio?hl=de-DE
Author
Owner

taking a look at the following docker-compose.yml:

services:
  api:
    container_name: karrio.api
    image: karrio.docker.scarf.sh/karrio/server:2024.9.8
    restart: unless-stopped
    ports:
      - ${KARRIO_HTTP_PORT}:${KARRIO_HTTP_PORT}
    depends_on:
      - db
      - redis
    healthcheck:
      test: curl --fail http://api:5002/ || exit 1
      interval: 40s
      timeout: 30s
      retries: 5
      start_period: 60s
    environment:
      DEBUG_MODE: "True"
      DETACHED_WORKER: "True"
      SECRET_KEY: ${SECRET_KEY}
      REDIS_HOST: ${REDIS_HOST}
      REDIS_PORT: ${REDIS_PORT}
      DATABASE_HOST: ${DATABASE_HOST}
      DATABASE_PORT: ${DATABASE_PORT}
      DATABASE_NAME: ${DATABASE_NAME}
      DATABASE_ENGINE: ${DATABASE_ENGINE}
      DATABASE_USERNAME: ${DATABASE_USERNAME}
      DATABASE_PASSWORD: ${DATABASE_PASSWORD}
      KARRIO_HTTP_PORT: ${KARRIO_HTTP_PORT}

  worker:
    container_name: karrio.worker
    image: karrio.docker.scarf.sh/karrio/server:2024.9.8
    restart: unless-stopped
    depends_on:
      - db
      - redis
      - api
    environment:
      DEBUG_MODE: "True"
      REDIS_HOST: ${REDIS_HOST}
      REDIS_PORT: ${REDIS_PORT}
      DATABASE_HOST: ${DATABASE_HOST}
      DATABASE_PORT: ${DATABASE_PORT}
      DATABASE_NAME: ${DATABASE_NAME}
      DATABASE_ENGINE: ${DATABASE_ENGINE}
      DATABASE_USERNAME: ${DATABASE_USERNAME}
      DATABASE_PASSWORD: ${DATABASE_PASSWORD}
    command: "/bin/bash ./worker"

  dashboard:
    container_name: karrio.dashboard
    image: karrio.docker.scarf.sh/karrio/dashboard:2024.9.8
    restart: unless-stopped
    ports:
      - ${DASHBOARD_PORT}:3000/tcp
    depends_on:
      api:
        condition: service_healthy
        restart: true
    environment:
      KARRIO_URL: http://api:${KARRIO_HTTP_PORT:-5002}
      NEXTAUTH_SECRET: ${JWT_SECRET}
      NEXT_PUBLIC_DASHBOARD_URL: ${DASHBOARD_URL}
      NEXT_PUBLIC_KARRIO_PUBLIC_URL: ${KARRIO_PUBLIC_URL}

  maildev:
    container_name: karrio.mail
    image: maildev/maildev
    restart: on-failure
    ports:
      - "1080:1080"
      - "1025:1025"

  # Comment out everything below this point if you are using an external database and redis instance.
  db:
    container_name: karrio.db
    image: postgres
    restart: unless-stopped
    ports:
      - ${DATABASE_PORT}:5432
    environment:
      POSTGRES_DB: ${DATABASE_NAME}
      POSTGRES_USER: ${DATABASE_USERNAME}
      POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
      PGDATA: /var/lib/postgresql/data/karrio
    volumes:
      - postgres-data:/var/lib/postgresql/data

  redis:
    container_name: karrio.redis
    image: redis
    restart: unless-stopped
    ports:
      - ${REDIS_PORT}:6379
    # command: redis-server --requirepass ${REDIS_PASSWORD}
    volumes:
      - redis-data:/data

volumes:
  postgres-data:
  redis-data:
taking a look at the following docker-compose.yml: ```yaml services: api: container_name: karrio.api image: karrio.docker.scarf.sh/karrio/server:2024.9.8 restart: unless-stopped ports: - ${KARRIO_HTTP_PORT}:${KARRIO_HTTP_PORT} depends_on: - db - redis healthcheck: test: curl --fail http://api:5002/ || exit 1 interval: 40s timeout: 30s retries: 5 start_period: 60s environment: DEBUG_MODE: "True" DETACHED_WORKER: "True" SECRET_KEY: ${SECRET_KEY} REDIS_HOST: ${REDIS_HOST} REDIS_PORT: ${REDIS_PORT} DATABASE_HOST: ${DATABASE_HOST} DATABASE_PORT: ${DATABASE_PORT} DATABASE_NAME: ${DATABASE_NAME} DATABASE_ENGINE: ${DATABASE_ENGINE} DATABASE_USERNAME: ${DATABASE_USERNAME} DATABASE_PASSWORD: ${DATABASE_PASSWORD} KARRIO_HTTP_PORT: ${KARRIO_HTTP_PORT} worker: container_name: karrio.worker image: karrio.docker.scarf.sh/karrio/server:2024.9.8 restart: unless-stopped depends_on: - db - redis - api environment: DEBUG_MODE: "True" REDIS_HOST: ${REDIS_HOST} REDIS_PORT: ${REDIS_PORT} DATABASE_HOST: ${DATABASE_HOST} DATABASE_PORT: ${DATABASE_PORT} DATABASE_NAME: ${DATABASE_NAME} DATABASE_ENGINE: ${DATABASE_ENGINE} DATABASE_USERNAME: ${DATABASE_USERNAME} DATABASE_PASSWORD: ${DATABASE_PASSWORD} command: "/bin/bash ./worker" dashboard: container_name: karrio.dashboard image: karrio.docker.scarf.sh/karrio/dashboard:2024.9.8 restart: unless-stopped ports: - ${DASHBOARD_PORT}:3000/tcp depends_on: api: condition: service_healthy restart: true environment: KARRIO_URL: http://api:${KARRIO_HTTP_PORT:-5002} NEXTAUTH_SECRET: ${JWT_SECRET} NEXT_PUBLIC_DASHBOARD_URL: ${DASHBOARD_URL} NEXT_PUBLIC_KARRIO_PUBLIC_URL: ${KARRIO_PUBLIC_URL} maildev: container_name: karrio.mail image: maildev/maildev restart: on-failure ports: - "1080:1080" - "1025:1025" # Comment out everything below this point if you are using an external database and redis instance. db: container_name: karrio.db image: postgres restart: unless-stopped ports: - ${DATABASE_PORT}:5432 environment: POSTGRES_DB: ${DATABASE_NAME} POSTGRES_USER: ${DATABASE_USERNAME} POSTGRES_PASSWORD: ${DATABASE_PASSWORD} PGDATA: /var/lib/postgresql/data/karrio volumes: - postgres-data:/var/lib/postgresql/data redis: container_name: karrio.redis image: redis restart: unless-stopped ports: - ${REDIS_PORT}:6379 # command: redis-server --requirepass ${REDIS_PASSWORD} volumes: - redis-data:/data volumes: postgres-data: redis-data: ```
Author
Owner

You have to set up a carrier account before tracking, I've now submitted a request for access which could take a bit

You have to set up a carrier account before tracking, I've now submitted a request for access which could take a bit
Erik closed this issue 2024-12-29 13:18:51 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Erik/server#13
No description provided.