Browse Source

fix traefik

master
P.H. Vos 5 years ago
parent
commit
8de45f55a1
  1. 20
      index.html
  2. 10
      stacks/webhosting/docker-stack.yml
  3. 12
      stacks/webhosting/docker-stack7.yml

20
index.html

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
Hostname: 02dfa7742801
IP: 127.0.0.1
IP: ::1
IP: 10.0.0.3
IP: 10.0.0.4
IP: fe80::42:aff:fe00:3
IP: 172.19.0.3
IP: fe80::42:acff:fe13:3
GET / HTTP/1.1
Host: dck01.rug.nl
User-Agent: Wget/1.17.1 (linux-gnu)
Accept: */*
Accept-Encoding: identity
X-Forwarded-For: 10.255.0.3
X-Forwarded-Host: dck01.rug.nl
X-Forwarded-Port: 80
X-Forwarded-Proto: http
X-Forwarded-Server: 3bc24085dc0e
X-Real-Ip: 10.255.0.3

10
stacks/webhosting/docker-stack.yml

@ -4,7 +4,7 @@ volumes: @@ -4,7 +4,7 @@ volumes:
data:
driver: nfs
driver_opts:
share: 192.168.64.12:/${APACHE_RUN_USER}
share: 192.168.64.10:/${APACHE_RUN_USER}
services:
web:
@ -22,9 +22,11 @@ services: @@ -22,9 +22,11 @@ services:
APACHE_SERVERALIAS: ${APACHE_SERVERALIAS}
APACHE_SERVERNAME: ${APACHE_SERVERNAME}
labels:
com.proxy.flow.http: 80
com.proxy.flow.path: /
com.proxy.flow.domain: dck01.rug.nl
traefik.enable: true
traefik.port: 80
traefik.frontend.rule: Host:${APACHE_SERVERNAME}
extra_hosts:
- "mysql01.service.rug.nl:192.168.64.101"
tty: true
image: registry.webhosting.rug.nl/webhosting/alpine-web:jenkins
volumes:

12
stacks/webhosting/docker-stack7.yml

@ -4,7 +4,7 @@ volumes: @@ -4,7 +4,7 @@ volumes:
data:
driver: nfs
driver_opts:
share: 192.168.64.12:/${APACHE_RUN_USER}
share: 192.168.64.10:/${APACHE_RUN_USER}
services:
web:
@ -21,11 +21,15 @@ services: @@ -21,11 +21,15 @@ services:
APACHE_SERVERADMIN: APACHE_SERVERADMIN}
APACHE_SERVERALIAS: ${APACHE_SERVERALIAS}
APACHE_SERVERNAME: ${APACHE_SERVERNAME}
labels:
io.rancher_haproxy.exposed_port: 80
io.rancher_haproxy.server_names: ${SITENAME},${SITENAME_ALIAS}
labels:
traefik.enable: true
traefik.port: 80
traefik.frontend.rule: Host:${APACHE_SERVERNAME}
extra_hosts:
- "mysql01.service.rug.nl:192.168.64.101"
tty: true
image: registry.webhosting.rug.nl/webhosting/alpine-web7:jenkins
volumes:
- data:/home/www
stdin_open: true

Loading…
Cancel
Save