-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (49 loc) · 2.28 KB
/
docker-compose.yml
File metadata and controls
55 lines (49 loc) · 2.28 KB
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
46
47
48
49
50
51
52
53
54
55
version: "2.1"
services:
open-3p_frontend:
image: e2rj/open3p-ui-frontend:latest
container_name: open-3p_frontend
restart: always
networks:
- proxy
labels:
- "traefik.enable=true"
# HTTP
- "traefik.http.routers.open3p-api.entrypoints=http"
- "traefik.http.routers.open3p-api.rule=Host(`open3p.ecosystem2.co.uk`)"
- "traefik.http.routers.open3p-api.middlewares=open3p-api_https"
- "traefik.http.middlewares.open3p-api_https.redirectscheme.scheme=https"
# HTTPS
- "traefik.http.routers.open3p-api-https.entrypoints=https"
- "traefik.http.routers.open3p-api-https.rule=Host(`open3p.ecosystem2.co.uk`)"
- "traefik.http.routers.open3p-api-https.tls=true"
- "traefik.http.routers.open3p-api-https.tls.certresolver=cloudflare"
- "traefik.http.routers.open3p-api-secure.service=open3p-api-https"
- "traefik.http.services.open3p-api-https.loadbalancer.server.port=5173"
- "traefik.docker.network=proxy"
open-3p_microservice:
image: e2rj/open3p-api-microservice:latest
container_name: open-3p_microservice
restart: always
networks:
- proxy
labels:
- "traefik.enable=true"
# HTTP
- "traefik.http.routers.open3p-frontend.entrypoints=http"
- "traefik.http.routers.open3p-frontend.rule=Host(`open3p.ecosystem2.co.uk`) && PathPrefix(`/api`)"
- "traefik.http.routers.open3p-frontend.middlewares=open3p-frontend_https"
- "traefik.http.middlewares.open3p-frontend_https.redirectscheme.scheme=https"
# HTTPS
- "traefik.http.routers.open3p-frontend-https.entrypoints=https"
- "traefik.http.routers.open3p-frontend-https.rule=Host(`open3p.ecosystem2.co.uk`) && PathPrefix(`/api`)"
- "traefik.http.middlewares.open3p-frontend-pathstrip.stripprefix.prefixes=/api"
- "traefik.http.routers.open3p-frontend-https.middlewares=open3p-frontend-pathstrip@docker"
- "traefik.http.routers.open3p-frontend-https.tls=true"
- "traefik.http.routers.open3p-frontend-https.tls.certresolver=cloudflare"
- "traefik.http.routers.open3p-frontend-secure.service=open3p-frontend-https"
- "traefik.http.services.open3p-frontend-https.loadbalancer.server.port=5173"
- "traefik.docker.network=proxy"
networks:
proxy:
external: true