-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
42 lines (41 loc) · 949 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
41
42
version: '3'
services:
traefik:
image: traefik:v1.7.30
command: --docker
ports:
- 80:80
networks:
- proxy
labels:
- "traefik.frontend.rule=Host:web.localhost"
- "traefik.port=8080"
- "traefik.docker.network=proxy"
volumes:
- ./traefik.toml:/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
nginx:
image: nginx:latest
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.frontend.rule=Host:localhost"
- "traefik.docker.network=proxy"
influxdb:
image: quay.io/influxdb/influxdb:v2.0.6
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.backend=influx"
- "traefik.frontend.rule=Host:influx.localhost"
- "traefik.docker.network=proxy"
- "traefik.port=9999"
networks:
proxy:
external:
name: proxy
internal:
external: false