Skip to content

Commit

Permalink
added dc file for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Mar 12, 2024
1 parent 7728626 commit 0d724ce
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: '3.1'

volumes:
collected_static:

services:

vb-nginx:
restart: unless-stopped
build: ./vb_nginx
image: vb-nginx-test
container_name: vb-nginx
ports:
- "80:80"
links:
- vb-django:uwsgi_django
volumes:
- collected_static:/src/collected_static

vb-django:
restart: unless-stopped
build: ./vb_django
image: vb-django-test
container_name: vb-django
command: ["sh", "/opt/app/start-server.sh"]
expose:
- "8080"
volumes:
- collected_static:/opt/collected_static
# - ./vb_django:/opt/app

vb-dask-scheduler:
restart: unless-stopped
image: ghcr.io/quanted/vb_dask:master
container_name: vb-dask-scheduler
hostname: dask-scheduler
expose:
- 8786
- 8787
command: ["conda", "run", "-n", "pyenv", "--no-capture-output", "dask-scheduler"]

vb-dask-worker:
restart: unless-stopped
image: ghcr.io/quanted/vb_dask:master
container_name: vb-dask-worker
hostname: dask-worker
command: ["conda", "run", "-n", "pyenv", "--no-capture-output", "dask-worker", "vb-dask-scheduler:8786"]
environment:
PYTHONPATH: '/src:/src/qed:/src/qed/flask_qed'
IN_DOCKER: "True"
HMS_BACKEND_SERVER_INTERNAL: "https://qedcloud.net/hms/"
HMS_WORKFLOW_BACKEND: "https://qedcloud.net/hms/rest/"
HMS_BACKEND: "https://qedcloud.net/hms/"

0 comments on commit 0d724ce

Please sign in to comment.