-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.68 KB
/
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
41
42
43
44
45
46
version: '3'
services:
reverse-proxy:
image: traefik:v2.4
ports:
- "80:80"
- "443:443"
volumes:
- ./traefik.yml:/etc/traefik/traefik.yml
- ./traefik_dynamic.yml:/etc/traefik/traefik_dynamic.yml
- ./appdata/acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
network_mode: bridge
brewcompetitiononlineentry:
build:
context: ./brewcompetition-http-smtp/
dockerfile: Dockerfile
image: brewcompetition-http-smtp
volumes:
- ./appdata/app:/data
environment:
- ADMIN_PASS=paStrySt00tS
- SMTP_HOST=smtp.mailgun.org
- SMTP_AUTH=TRUE
- SMTP_PASS=paStrySt00tS
- SMTP_SEC=tls
- SMTP_PORT=587
- TZ=Australia/Brisbane
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.docker.network=bridge
- traefik.http.routers.brewcompetitiononlineentry.rule=Host(`your.brew.comp.web.site.beer`)
- traefik.http.routers.brewcompetitiononlineentry.entrypoints=web
- traefik.http.routers.brewcompetitiononlineentry.middlewares=brewcompetitiononlineentry_redirect2https
- traefik.http.routers.brewcompetitiononlineentry_secure.rule=Host(`your.brew.comp.web.site.beer`)
- traefik.http.routers.brewcompetitiononlineentry_secure.entrypoints=websecure
- traefik.http.routers.brewcompetitiononlineentry_secure.tls.certresolver=tlsChallenge_letsencrypt
- traefik.http.middlewares.brewcompetitiononlineentry_redirect2https.redirectscheme.scheme=https
network_mode: bridge