Skip to content
Snippets Groups Projects
docker-compose.local.yml 7.26 KiB
version: '3.8'
services:
  nginx:
    image: nginx:1.19.7-alpine
    restart: always
    ports:
      - "4444:80"
    depends_on:
      frontend:
        condition: service_started
    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/db
    build:
      context: .
      dockerfile: ./ci/psql/Dockerfile.db
    restart: always
    ports:
      - "54322:5432"
    environment:
      POSTGRES_USER: archive
      POSTGRES_PASSWORD: docker
    command: postgres -c listen_addresses=*
    healthcheck:
      test: pg_isready -U archive -d archive
      start_period: 5s
      interval: 2s
      timeout: 2s
      retries: 5
    volumes:
      - ./pgdata:/var/lib/postgresql/data

  amqp:
    image: rabbitmq:3.8-management
    restart: always
    user: rabbitmq
    ports:
      - "15672:15672"
    healthcheck:
      test: rabbitmq-diagnostics -q ping
      start_period: 5s
      interval: 2s
      timeout: 2s
      retries: 5

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

  condor-execute:
    build:
      context: .
      dockerfile: ./config/htcondor/execute/Dockerfile.local
      secrets:
        - host_ssh_key # Needed to clone a repo from gitlab, will be mounted during the build
    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: .