-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
41 lines (36 loc) · 908 Bytes
/
docker-compose.yml
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
version: '2'
networks:
default:
driver: bridge
volumes:
traefik-ssl:
driver: local
services:
traefik:
container_name: traefik
hostname: traefik
build: .
image: sofwerx/traefik
restart: always
ports:
- 80:80
- 443:443
environment:
HTTP_PORT: "80"
HTTPS_PORT: "443"
REST_PORT: "8080"
EMAIL: "[email protected]"
DNS_DOMAIN: ${DNS_DOMAIN}
SUBDOMAINS: ${SUBDOMAINS}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
volumes:
- traefik-ssl:/ssl
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.backend=traefik"
- "traefik.port=8080"
- "traefik.frontend.rule=Host:traefik.${DNS_DOMAIN}"
- "traefik.frontend.passHostHeader=true"
- "traefik.frontend.entryPoints=http,https"