-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtraefik-helper.example.yml
53 lines (47 loc) · 1.26 KB
/
traefik-helper.example.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
52
53
# Sample yml file for running Traefik.
#
# This will run redis, mailhog, and portainer services that can be shared by
# Docker services on all other networks.
#
# For example, you could run multiple PHP services for multiple sites and all
# of them could use the same mailhog sevice.
version: '2'
services:
traefik:
image: traefik:v1.7
restart: unless-stopped
command: -c /dev/null --web --docker --forwardingtimeouts.dialtimeout=0s --logLevel=DEBUG
networks:
~NETWORK_LIST~
ports:
- '80:80'
- '8080:8080'
- '8025:8025'
- '9001:9000'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
redis:
image: wodby/redis:3.2-2.1.2
networks:
~NETWORK_LIST~
mailhog:
image: mailhog/mailhog
networks:
~NETWORK_LIST~
labels:
- 'traefik.backend=mailhog'
- 'traefik.port=8025'
- 'traefik.frontend.rule=Host:mailhog.drupal.docker.localhost'
portainer:
image: portainer/portainer
command: --no-auth -H unix:///var/run/docker.sock
networks:
~NETWORK_LIST~
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- 'traefik.backend=portainer'
- 'traefik.port=9000'
- 'traefik.frontend.rule=Host:portainer.drupal.docker.localhost'
networks:
~NETWORK_SECTION~