-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a docker build file with no secrets for github actions
Signed-off-by: ZhuoweiWen <[email protected]>
- Loading branch information
1 parent
e1734b6
commit 89a5a12
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
services: | ||
work: | ||
image: ghcr.io/spin-vt/backend | ||
build: | ||
context: ./back-end | ||
dockerfile: Dockerfile.worker | ||
command: celery -A controllers.celery_controller.celery_config.celery worker --loglevel=DEBUG | ||
volumes: | ||
- ./back-end:/app | ||
depends_on: | ||
- redis | ||
|
||
backend: | ||
image: ghcr.io/spin-vt/worker | ||
build: | ||
context: ./back-end | ||
dockerfile: Dockerfile.backend | ||
command: gunicorn routes:app -b 0.0.0.0:8000 -w 4 --log-level debug --reload | ||
volumes: | ||
- ./back-end:/app | ||
depends_on: | ||
- db | ||
- redis | ||
expose: | ||
- 8000 | ||
|
||
frontend: | ||
image: ghcr.io/spin-vt/frontend | ||
build: ./front-end | ||
volumes: | ||
- ./front-end:/app | ||
depends_on: | ||
- backend | ||
expose: | ||
- 3000 | ||
|
||
nginx: | ||
image: ghcr.io/spin-vt/my-nginx | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile.nginx | ||
container_name: nginx-proxy | ||
depends_on: | ||
- backend | ||
- frontend | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters