Skip to content
Snippets Groups Projects
docker-compose-ua.yml 939 B
Newer Older
# This docker-compose is used to run TMSS together with a test open ID connect server on the User Acceptance system (tmss-ua)
  rabbitmq:
    image: rabbitmq:latest
    hostname: rabbitmq
    ports:
      - 5672:5672
      - 15672:15672
  django:
    image: git.astron.nl:5000/ro/lofar/tmss_django:latest
    container_name: django-gunicorn
    restart: always
    volumes:
      - static_volume:/opt/lofar/staticfiles
      - ~/.lofar/.env
    command:
      "/bin/bash -c 'source lofarinit.sh;
                     gunicorn lofar.sas.tmss.tmss.wsgi --worker-class=gevent --workers=4 --bind=0.0.0.0:8001'"
    depends_on:
      - rabbitmq
  tmss-ua.control.lofar:
    image: nginx:1.17
    container_name: ngx
    volumes:
      - static_volume:/opt/lofar/staticfiles
      - ~/.lofar/etc/nginx:/etc/nginx/conf.d
    depends_on:
      - django

volumes:
  static_volume: