-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (43 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '3'
services:
# container for API
dnsmasq:
restart: always
image: jpillora/dnsmasq:latest
ports:
- 53:53/udp
volumes:
- ./dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf:ro
traefik:
restart: always
image: traefik:latest
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/certs:ro
- ./traefik/traefik.yml:/traefik.yml:ro
- ./traefik/dynamic.yml:/dynamic.yml:ro
depends_on:
- dnsmasq
labels:
- traefik.enable=true
- traefik.http.routers.traefik.tls=true
- traefik.http.routers.traefik.service=traefik
app:
extends:
file: common.yaml
service: app
labels:
- "traefik.enable=true"
- traefik.http.routers.traefik.entrypoints=http,https
# URL to reach this container
- "traefik.http.routers.app.rule=Host(`core.dev`)"
# Activation of TLS
- "traefik.http.routers.app.tls=true"
db:
extends:
file: common.yaml
service: db