Sign inSign up

tangowithfoxtrot/test:latest

Manifest digest

sha256:4dbcd163f686628e1b56cb7fe4a7f80c9a7aff8f65027b62955a7fcf2adfcd8a

Last pushed

almost 2 years by tangowithfoxtrot

Type

Compose

Manifest digest

sha256:4dbcd163f686628e1b56cb7fe4a7f80c9a7aff8f65027b62955a7fcf2adfcd8a

Compose file content

services:
  bw_api:
    container_name: bw_api
    hostname: bw_api
    platform: linux/amd64
    image: tangowithfoxtrot/bw-cli:${TAG:-latest}
    # build:
    #   context: .
    #   dockerfile: Dockerfile
    env_file:
      - .env
    environment:
      UNLOCK_VAULT: true
    # volumes: # uncomment to use Bitwarden CLI data from host
    #   - "$HOME/.config/Bitwarden CLI:/root/.config/Bitwarden CLI" # Linux
    #   - "$HOME/Library/Application Support/Bitwarden CLI:/root/.config/Bitwarden CLI" # macOS
    ports:
      - "127.0.0.1:${SERVE_PORT:-8087}:${SERVE_PORT:-8087}"
    healthcheck:
      test: curl -f http://localhost:${SERVE_PORT:-8087}/status || exit 1
      interval: 5s
      timeout: 2s
      retries: 3
      start_period: 5s
services:
  bw_api:
    #   container_name: bw_api
    #   hostname: bw_api
    #   platform: linux/arm64/v8
    #   image: !reset # image: tangowithfoxtrot/bw-cli:latest-scratch
    #  build:
    #     context: .
    #     dockerfile: Dockerfile
    #     args:
    #       ARCH: aarch64 # arch for the shlibs
    env_file:
      - .env
    environment:
      # BITWARDENCLI_DEBUG: true
      BWCLI_ENV: development
      SERVE_PORT: 8088
      VAULT_PASSWORD: ${BW_PASSWORD}
      UNLOCK_VAULT: true
    stop_signal: SIGKILL
    volumes: # uncomment to use Bitwarden CLI data from host
      # - "/tmp/bw:/root/.config/Bitwarden CLI" # Linux
      - "$HOME/.config/Bitwarden CLI:/root/.config/Bitwarden CLI" # Linux
      # - "$HOME/Library/Application Support/Bitwarden CLI:/root/.config/Bitwarden CLI" # macOS
      - "$PWD/entrypoint.sh:/usr/local/bin/entrypoint.sh"
    ports: !reset

    entrypoint: ["/bin/bash", "-c", "/usr/local/bin/entrypoint.sh"]

  nginx: # for CORS :/
    image: nginx:alpine
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
      - ./certs:/etc/nginx/ssl
    ports:
      - "127.0.0.1:8087:80"

  swagger_ui:
    container_name: swagger_ui
    hostname: swagger_ui
    # image: swaggerapi/swagger-ui
    image: swaggerapi/swagger-editor
    environment:
      # API_URL: "https://gist.githubusercontent.com/tangowithfoxtrot/fa635603c1417e5c77de38d2e95a6567/raw/66bbef151817a515561f8021a1401a8369098bcd/swagger.yaml" # swagger-ui
      URL: "https://gist.githubusercontent.com/tangowithfoxtrot/fa635603c1417e5c77de38d2e95a6567/raw/66bbef151817a515561f8021a1401a8369098bcd/swagger.yaml" # swagger-editor
    ports:
      - "8086:8080"

networks:
  default:
    name: bw_api

Docker commands

docker compose -f oci://tangowithfoxtrot/test:latest up

Use the above command to pull and run the Compose file. Learn more.

Images used

Image + 1 more

Official build of Nginx.


Pulls

1B+

Stars

21382

Last Updated

about 12 hours

Image

The swagger-editor web service


Pulls

10M+

Stars

388

Last Updated

3 days

Image

The latest Bitwarden CLI in a Docker image


Pulls

100K+

Stars

0

Last Updated

over 1 year