Skip to content

Commit

Permalink
Make backend and frontend containers optional in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
raffomania committed Nov 9, 2023
1 parent 79afe3e commit 5723c34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
COMPOSE_PROJECT_NAME=demo
# If you're running the backend and frontend
# outside of containers,
# remove this line to disable their containers
COMPOSE_PROFILES=backend,frontend

# Which user and group to use for running processes
# inside containers.
# Set this to the user and group you're using
Expand Down
4 changes: 4 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ services:
- ray
networks:
- dwts_demo_network
profiles:
- backend

dwts-frontend:
image: uhhlt/dwts_frontend:${DWTS_FRONTEND_DOCKER_VERSION:-latest}
Expand All @@ -260,6 +262,8 @@ services:
- "${FRONTEND_EXPOSED:-3000}:3000"
networks:
- dwts_demo_network
profiles:
- frontend

volumes:
rabbitmq_data_demo:
Expand Down

0 comments on commit 5723c34

Please sign in to comment.