-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.localhost.yml
More file actions
36 lines (33 loc) · 930 Bytes
/
docker-compose.localhost.yml
File metadata and controls
36 lines (33 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
version: '3.8'
services:
traefik:
image: traefik:v2.10
container_name: traefik-localhost
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik-localhost/traefik.yml:/etc/traefik/traefik.yml
- ./traefik-localhost/certs:/etc/traefik/certs
networks:
- web
dictionary-app:
build:
context: .
dockerfile: Dockerfile.prod
container_name: dictionary-app-localhost
restart: unless-stopped
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.dictionary.rule=Host(`localhost`)"
- "traefik.http.routers.dictionary.entrypoints=websecure"
- "traefik.http.routers.dictionary.tls=true"
- "traefik.http.services.dictionary.loadbalancer.server.port=80"
- "traefik.docker.network=web"
networks:
web:
external: true