Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Kozlowski <[email protected]>
  • Loading branch information
marcinguy authored Jul 10, 2024
1 parent d896c9c commit 254ade2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ services:
restart: always
depends_on:
- postgres
working_dir: /srv/betterscan/
working_dir: /srv/betterscan-ce/
entrypoint: sh
command: -c "mkdir -p data1/repositories; mkdir -p data2/tasks; mkdir -p setup_state; if [ -f /srv/betterscan/setup_state/setup_done ]; then curl --silent --output /dev/null https://dl.betterscan.io/run-docker.html; python3.8 /srv/betterscan/manage.py runserver; else python3.8 /srv/betterscan/manage.py setup && touch /srv/betterscan/setup_state/setup_done; curl --silent --output /dev/null https://dl.betterscan.io/installation-docker.html; fi"
command: -c "mkdir -p data1/repositories; mkdir -p data2/tasks; mkdir -p setup_state; if [ -f /srv/betterscan-ce/setup_state/setup_done ]; then curl --silent --output /dev/null https://dl.betterscan.io/run-docker.html; python3.8 /srv/betterscan-ce/manage.py runserver; else python3.8 /srv/betterscan-ce/manage.py setup && touch /srv/betterscan-ce/setup_state/setup_done; fi"

ports:
- 5000:5000
volumes:
- ./data1:/srv/betterscan/quantifiedcode/data/
- ./data2:/srv/betterscan/quantifiedcode/backend/data/tasks
- ./setup_state:/srv/betterscan/setup_state
- ./data1:/srv/betterscan-ce/quantifiedcode/data/
- ./data2:/srv/betterscan-ce/quantifiedcode/backend/data/tasks
- ./setup_state:/srv/betterscan-ce/setup_state
links:
- "postgres"

Expand Down Expand Up @@ -65,12 +65,12 @@ services:
- rabbitmq3
- postgres
- server
working_dir: /srv/betterscan/
working_dir: /srv/betterscan-ce/
entrypoint: sh
command: -c "python3.8 /srv/betterscan/manage.py runworker"
command: -c "python3.8 /srv/betterscan-ce/manage.py runworker"
volumes:
- ./data1:/srv/betterscan/quantifiedcode/data/
- ./data2:/srv/betterscan/quantifiedcode/backend/data/tasks
- ./data1:/srv/betterscan-ce/quantifiedcode/data/
- ./data2:/srv/betterscan-ce/quantifiedcode/backend/data/tasks
links:
- "rabbitmq3"
- "server"
Expand Down

0 comments on commit 254ade2

Please sign in to comment.