Skip to content
Snippets Groups Projects
docker-compose.yml 5.74 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
      - ./tmp/:/tmp/workspaces_tmp
      - ./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=*

  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

  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
  # Uncomment this and run the command `docker compose up schema-dev` and the migration will run
#  schema-dev:
#    build:
#      context: ./schema/
#      dockerfile: Dockerfile.local
#    command: ["./bin/run-migrations.sh", "dsoc-dev"]
#    depends_on:
#      - db
#    volumes:
#      - ./schema:/code/schema
#      - ~/.capo:/home/casa/capo

  workflow:
    build:
      context: .