-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.79 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
47
48
49
50
51
version: "3.8"
services:
traefik:
image: traefik:v2.4.13
container_name: uccser-development-proxy
ports:
# HTTP/HTTPS ports
- "80:80"
- "443:443"
environment:
- TZ=Pacific/Auckland
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:ro
# Map certificates into the container
- ./certs:/etc/traefik/:z
# Map static config into the container
- ./traefik.yml:/etc/traefik/traefik.yml:ro
networks:
- uccser-development-stack
labels:
# General labels
- "traefik.enable=true"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
# HTTPS
- "traefik.http.routers.traefik.entryPoints=web-secure"
- "traefik.http.routers.traefik.service=traefik"
- "traefik.http.routers.traefik.rule=Host(`proxy.localhost`)"
- "traefik.http.routers.traefik.tls=true"
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: uccser-development-email
networks:
- uccser-development-stack
labels:
# General labels
- "traefik.enable=true"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"
# HTTPS
- "traefik.http.routers.mailhog.entryPoints=web-secure"
- "traefik.http.routers.mailhog.service=mailhog"
- "traefik.http.routers.mailhog.rule=Host(`email.localhost`)"
- "traefik.http.routers.mailhog.tls=true"
networks:
uccser-development-stack:
driver: bridge
# Set name so not scoped with stack name
name: uccser-development-stack