-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
30 lines (30 loc) · 1.15 KB
/
docker-compose.yaml
File metadata and controls
30 lines (30 loc) · 1.15 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
services:
nextjs:
build:
context: ./
dockerfile: Dockerfile
image: mahitday
pull_policy: build
volumes:
- /storage/mahitday/uploads/:/app/uploads/:rw,z
restart: always
env_file:
- stack.env
labels:
# Traefik configuration discovery
# https://doc.traefik.io/traefik/providers/docker/#routing-configuration-with-labels
- 'traefik.enable=true'
- 'traefik.http.middlewares.mahitday-redirect.redirectscheme.scheme=https'
- 'traefik.http.middlewares.mahitday-redirect.redirectscheme.permanent=true'
- 'traefik.http.routers.mahitday-http.middlewares=mahitday-redirect'
- 'traefik.http.routers.mahitday-http.rule=Host(`mahitday.docchula.com`)'
- 'traefik.http.routers.mahitday-http.entrypoints=web'
- 'traefik.http.routers.mahitday-https.rule=Host(`mahitday.docchula.com`)'
- 'traefik.http.routers.mahitday-https.entrypoints=websecure'
- 'traefik.http.routers.mahitday-https.tls.certresolver=leresolver'
- 'traefik.http.services.mahitday-https.loadbalancer.server.port=3000'
deploy:
resources:
limits:
cpus: '2'
memory: 1G