jobcespedes / docker-compose-moodle

This project quickly builds a local workspace for Moodle (Apache2, PHP-FPM with XDEBUG y Postgres) using containers for each of its main components. The local workspace is built and managed by Docker Compose
Apache License 2.0
52 stars 28 forks source link

Image doesn't work with a reverse proxy. #2

Closed rene-gomez closed 4 years ago

rene-gomez commented 6 years ago

Hi Team

I need work with Moodle under a reverse proxy, but the Moodle containers doesn't work with a reverse proxy.

This is my Docker compose file for the reverse proxy:

version: '2'
services:
  nginx-proxy:
    image: jwilder/nginx-proxy
    container_name: nginx-proxy
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /var/www/vhost.d:/etc/nginx/vhost.d
      - /var/www/certs:/etc/nginx/certs:ro
      - /usr/share/nginx/html
    labels:
      - com.example.nginx_proxy=true

volumes:
  nginx-proxy:

networks:
  default:
    external:
      name: nginx-proxy

I only add the external network into the moodle docker-compose file. when set up the moodle's containers I never see the moodle webpage.

Best regards.