通过撰写文件在docker上的reverse_proxy_apache上构建proxied_apache

时间:2019-02-02 16:08:28

标签: apache docker proxy debian

我分叉一个docker-debian-base系统,并希望与additionals应用把它像proxied apachereverse proxy server

我从与我的proxied_apache/reverse_proxy分叉来自的同一个人那里找到了docker-debian-base设置。

因为我们想保持源代码干净,没有任何自己的东西,我们想在docker-compose.yml上配置这些图像,但我想问自己,现在也是,请问您是否有可能获得在相反的代理网站上运行网站。

一些链接和信息: this is the source from the docker-debian-base

this is the source from the apache_reverse and proxied_apache

this is the fork from my side (took it together in just one repo)

我已经更改了一些信息,例如自述文件,并将apache-php更改为php7.2,包括一些扩展名和ioncube_loaders。我已经改变了FROM的reverseproxied阿帕奇到我自己的源和从debian-base-apachedebian-base-apache-php:latest

这是我写的我的docker-compose.yml-功能不正常,正在进行中:

version: '3.7'
services:

 proxied-app-apache:
  image: yfstein/debian-base-proxied-app-apache:latest
  container_name: proxied-app-apache
  ports:
   - "80:80"
   - "443:443"
  networks:
   backend:
    ipv4_adress: 172.18.0.11
  volumes:
   - ./apache2/htdocs/:/var/www/html
   - ./apache2/sites-available/vhost.conf:/etc/apache2/sites-available/vhost.conf
   - ./apache2/sites-available/vhost.conf:/etc/apache2/sites-enabled/vhost.conf
  environment:
   PROXYCLIENT_AUTHORIZED 172.18.0.10

 reverse-proxy-apache:
  image: yfstein/debian-base-reverse-proxy-apache:latest
  container_name: reverse-proxy-apache
  depends_on:
   - proxied-app-apache
  ports:
   - "80:80"
   - "443:443"
  networks:
   - frontend
   techgods-backend:
    ipv4_adress: 172.18.0.10
  environment:
   DEBBASE_SYSLOG: internal
   DEBBASE_TIMEZONE: Europe/Berlin
   DEBBASE_SSH: disabled
   LETSENCRYPT_EMAIL: myemail@adress.tld


networks:
 frontend:
 backend:
  subnet: 172.18.0.0/16

如果有人能帮助我使它正常工作,并且最重要的是,理解它,那将是很好的事情。

0 个答案:

没有答案