-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.multi.yaml
More file actions
40 lines (35 loc) · 930 Bytes
/
docker-compose.multi.yaml
File metadata and controls
40 lines (35 loc) · 930 Bytes
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
services:
ingress:
image: dstacktee/dstack-ingress:2.1@sha256:36894662bdd252d53e8492be147f43dd7d91a5732a78a2a85f39e55c1460b4d0
ports:
- "443:443"
environment:
DNS_PROVIDER: cloudflare
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN}
CERTBOT_EMAIL: ${CERTBOT_EMAIL}
GATEWAY_DOMAIN: _.dstack-prod5.phala.network
SET_CAA: true
DOMAINS: |
app.example.com
api.example.com
ROUTING_MAP: |
app.example.com=app-main:80
api.example.com=app-api:8080
volumes:
- /var/run/tappd.sock:/var/run/tappd.sock
- letsencrypt:/etc/letsencrypt
- evidences:/evidences
restart: unless-stopped
app-main:
image: nginx
volumes:
- evidences:/evidences:ro
restart: unless-stopped
app-api:
image: nginx
volumes:
- evidences:/evidences:ro
restart: unless-stopped
volumes:
letsencrypt:
evidences: