Skip to content
Snippets Groups Projects
docker-compose.local.yml 7.00 KiB
version: '3.8'
services:
  nginx:
    image: nginx:1.19.7-alpine
    restart: always
    ports:
      - "4444:80"
    depends_on:
      - frontend
    command: nginx -g "daemon off;"
    volumes:
      - ./apps/web/ws-nginx.local.conf:/etc/nginx/conf.d/default.conf
      - ./lustre/:/lustre/aoc/cluster/pipeline/docker/workspaces
      - ./delivery_root:/tmp/delivery_root
  db:
    image: ssa-containers.aoc.nrao.edu/ops/ci/db:workspaces
    restart: always
    ports:
      - "54322:5432"
    environment:
      POSTGRES_USER: archive
      POSTGRES_PASSWORD: docker
    command: postgres -c listen_addresses=*
    volumes:
      - ./pgdata:/var/lib/postgresql/data

  amqp:
    image: rabbitmq:3.8-management
    restart: always
    ports:
      - "15672:15672"

  condor-cm:
    build:
      context: .
      dockerfile: ./config/htcondor/cm/Dockerfile.local
    ports:
      - 9618

  condor-execute:
    build:
      context: .
      dockerfile: ./config/htcondor/execute/Dockerfile.local
    volumes:
      - ./delivery_root:/tmp/delivery_root
      - ./lustre/aoc/cluster/pipeline/docker/workspaces:/lustre/aoc/cluster/pipeline/docker/workspaces
      - ./lustre/aoc/cluster/pipeline/vlass_docker:/lustre/aoc/cluster/pipeline/vlass_docker

  pex-watcher:
    build:
      context: .
      dockerfile: ./config/pex-watcher/Dockerfile.pex
    volumes:
      - ./config/pex-watcher:/config
      - ./apps/cli/executables/pexable/:/config/apps/cli/executables/pexable/
      - ./lustre/aoc/cluster/pipeline/docker/workspaces/sbin:/lustre/aoc/cluster/pipeline/docker/workspaces/sbin

  schema:
    build:
      context: ./schema/
      dockerfile: Dockerfile.local
    depends_on:
      - db
    volumes:
      - ./schema:/code/schema
      - ./docker.properties:/home/ssa/capo/docker.properties

  # Used for doing a DB migration on dsoc-dev
  # Run the command `docker compose -f docker-compose.local.yml --profile schema-dev up schema-dev` and the migration will run
  schema-dev: