-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
29 lines (29 loc) · 1.04 KB
/
docker-compose.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
version: '3.8'
services:
api:
image: ${IHSELECTRIC_API_IMAGE}
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.ihselectric_api.rule=Host(`${BASE_URL}`,`www.${BASE_URL}`) && PathPrefix(`/api`)"
- "traefik.http.routers.ihselectric_api.entrypoints=https"
- "traefik.http.routers.ihselectric_api.tls.certresolver=cloudflaredns"
- "traefik.http.services.ihselectric_api.loadbalancer.server.port=3000"
networks:
- proxy
frontend:
image: ${IHSELECTRIC_FRONTEND_IMAGE}
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.ihselectric.rule=Host(`${BASE_URL}`,`www.${BASE_URL}`)"
- "traefik.http.routers.ihselectric.entrypoints=https"
- "traefik.http.routers.ihselectric.tls.certresolver=cloudflaredns"
- "traefik.http.services.ihselectric.loadbalancer.server.port=80"
networks:
- proxy
volumes:
- ${IHSELECTRIC_SRV_BASE}/sites-available:/etc/nginx/sites-enabled
networks:
proxy:
external: true