-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.staging.yml
45 lines (43 loc) Β· 1.97 KB
/
docker-compose.staging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
frontend:
image: ghcr.io/uab-cgds-worthey/rosalution/frontend:${ROSALUTION_VERSION}
networks:
- rosalution-network
- traefik
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "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"
- "traefik.http.middlewares.frontend-strip-prefix.stripprefix.prefixes=/rosalution"
- "traefik.http.services.rosalution-frontend-prod-service.loadbalancer.server.port=80"
backend:
image: ghcr.io/uab-cgds-worthey/rosalution/backend:${ROSALUTION_VERSION}
networks:
- rosalution-network
- traefik
environment:
- ROSALUTION_ENV=production
- MONGODB_HOST=rosalution-db
- CAS_LOGIN_ENABLE=True
entrypoint: ['/bin/sh', '-c', './entrypoint-init.sh']
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "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"
- "traefik.http.middlewares.backend-strip-prefix.stripprefix.prefixes=/rosalution/api"
- "traefik.http.services.rosalution-backend-prod-service.loadbalancer.server.port=8000"
networks:
rosalution-network:
name: rosalution-network-dev
external: true
traefik:
name: traefik-public
external: true