-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 1.32 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
version: '3'
services:
domain-service:
build: .
environment:
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_KEY=${SUPABASE_KEY}
- REDIS_HOST=redis
- REDIS_PORT=6379
- SUPABASE_BUCKET=${SUPABASE_BUCKET}
restart: unless-stopped
networks:
- coolify
labels:
- "traefik.enable=true"
- "traefik.http.routers.domain-service.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.domain-service.entrypoints=websecure"
- "traefik.http.routers.domain-service.tls=true"
- "traefik.http.routers.domain-service.tls.certresolver=letsencrypt"
- "traefik.http.services.domain-service.loadbalancer.server.port=80"
- "traefik.http.routers.domain-service.priority=1"
# HTTP to HTTPS redirect
- "traefik.http.routers.domain-service-http.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.domain-service-http.entrypoints=web"
- "traefik.http.routers.domain-service-http.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"
redis:
image: redis:alpine
volumes:
- redis-data:/data
restart: unless-stopped
networks:
- coolify
volumes:
redis-data:
networks:
coolify:
external: true