Skip to content

Commit

Permalink
made sure that the db can be connected to
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Mar 31, 2024
1 parent b515923 commit 51209cb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ services:
backend:
image: ghcr.io/tum-dev/campus-backend/backend-server:main
restart: unless-stopped
networks:
- traefik_traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`api.tum.app`)"

- "traefik.http.routers.backend_h2.rule=Host(`api-grpc.tum.app`) && Headers(`Content-Type`, `application/grpc`)"
- "traefik.http.routers.backend_h2.scheme=h2c"
networks:
- traefik_traefik
- campus_db
expose:
- "50051"
environment:
Expand All @@ -35,6 +36,8 @@ services:
db:
image: bitnami/mariadb:latest
restart: unless-stopped
networks:
- campus_db
expose:
- 3306
environment:
Expand Down Expand Up @@ -82,5 +85,6 @@ volumes:
driver: local

networks:
traefik_traefik:
external: true
campus_db:
traefik_traefik:
external: true

0 comments on commit 51209cb

Please sign in to comment.