-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (25 loc) · 715 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (25 loc) · 715 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
version: "3"
services:
nginx:
depends_on:
- traefik
image: nginx:latest
restart: unless-stopped
volumes:
- ./html:/usr/share/nginx/html:ro
labels:
- traefik.http.routers.avatars.entrypoints=websecure
- traefik.http.routers.avatars.rule=Host(`localhost`)
- traefik.http.routers.avatars.service=avatars
- traefik.http.routers.avatars.tls=true
- traefik.http.services.avatars.loadbalancer.server.port=80
traefik:
image: traefik:2.6
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- ./traefik.yml:/traefik.yml:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro