Skip to content

Commit

Permalink
Making a staging docker-compose.yml for deploying the development ver…
Browse files Browse the repository at this point in the history
…sion of Rosalution (#174)

* changed development to staging

* removed the original staging yml and changed the production yml to be staging with tls

* Updated the github runner workflow to use staging instead of production yml
  • Loading branch information
JmScherer authored May 22, 2024
1 parent 7dc8dd3 commit be813a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development-main-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
uses: actions/checkout@v3

- name: Deploy Production Rosalution Build to Developer DevOps Server
run: sudo -E docker stack deploy --prune --with-registry-auth --compose-file docker-compose.production.yml rosalution-prod
run: sudo -E docker stack deploy --prune --with-registry-auth --compose-file docker-compose.staging.yml rosalution-prod
9 changes: 4 additions & 5 deletions docker-compose.production.yml → docker-compose.staging.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.5'

services:
frontend:
image: ghcr.io/uab-cgds-worthey/rosalution/frontend:${ROSALUTION_VERSION}
Expand All @@ -10,7 +8,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "traefik.http.routers.rosalution-frontend-prod-router.entrypoints=http"
- "traefik.http.routers.rosalution-frontend-prod-router.tls=true"
- "traefik.http.routers.rosalution-frontend-prod-router.rule=Host(`dev.cgds.uab.edu`) && PathPrefix(`/rosalution`)"
- "traefik.http.routers.rosalution-frontend-prod-router.service=rosalution-frontend-prod-service"
- "traefik.http.routers.rosalution-frontend-prod-router.middlewares=frontend-strip-prefix"
Expand All @@ -31,7 +29,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "traefik.http.routers.rosalution-backend-prod-router.entrypoints=http"
- "traefik.http.routers.rosalution-backend-prod-router.tls=true"
- "traefik.http.routers.rosalution-backend-prod-router.rule=Host(`dev.cgds.uab.edu`) && PathPrefix(`/rosalution/api`)"
- "traefik.http.routers.rosalution-backend-prod-router.service=rosalution-backend-prod-service"
- "traefik.http.routers.rosalution-backend-prod-router.middlewares=backend-strip-prefix"
Expand All @@ -40,7 +38,8 @@ services:

networks:
rosalution-network:
name: rosalution-network-prod
name: rosalution-network-dev
external: true
traefik:
name: traefik-public
external: true

0 comments on commit be813a2

Please sign in to comment.