Skip to content

Commit

Permalink
Add huey service to docker compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Nov 27, 2024
1 parent b6ec102 commit 6d55621
Show file tree
Hide file tree
Showing 13 changed files with 199 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
build:
context: ./backend
dockerfile: Dockerfile
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-remote-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ services:
networks:
- front

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
restart: unless-stopped
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
17 changes: 17 additions & 0 deletions enterprise/docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
build:
context: ./backend
dockerfile: Dockerfile
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions enterprise/docker-compose-pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions enterprise/docker-compose-remote-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions enterprise/docker-compose-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions enterprise/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ services:
volumes:
- ./db:/code/db

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
frontend:
container_name: frontend
environment:
Expand Down
15 changes: 15 additions & 0 deletions frontend/tests/docker-compose.e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ services:
ports:
- 8080:8000

huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- DJANGO_DEBUG=False
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
poetry run python manage.py run_huey
tests:
container_name: functional-tests
environment:
Expand Down

0 comments on commit 6d55621

Please sign in to comment.