-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.03 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
version: "3.5"
services:
traefik:
image: traefik:1.7-alpine@sha256:0531581bde9da0670fc2c7a4e419e1cc38abff74e7ba06410bf2b1b55c70ef15
read_only: yes
command: --api --docker --docker.exposedbydefault=false
ports:
- 80:80
- 443:443
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
source: ./traefik.toml
target: /traefik.toml
- type: bind
source: ./acme.json
target: /acme.json
networks:
- traefik
anschluss:
image: quay.io/westnetz/anschluss:edge
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${HOSTNAME}"
- "traefik.docker.network=traefik"
networks:
- traefik
environment:
- DJANGO_ADMINS
- DJANGO_ALLOWED_HOSTS=${HOSTNAME}
- DJANGO_DEFAULT_FROM_EMAIL
- DJANGO_EMAIL_HOST
- DJANGO_EMAIL_HOST_PASSWORD
- DJANGO_EMAIL_HOST_USER
- DJANGO_SECRET_KEY
networks:
traefik:
external:
name: traefik