Bug with conf/nginx/nginx-site.conf #112

Closed
opened 2017-02-12 00:13:54 +00:00 by graymic · 1 comment
graymic commented 2017-02-12 00:13:54 +00:00 (Migrated from github.com)

When in the root of a project, if you create the conf/nginx/nginx-site*.conf

If you were to add anything:

server {
   # configuration
}

Typically the EOF is missing when copied into the container upon performing a docker-compose up -d this yield an nginx critical error. I found this after a while of hunting through /etc/nginx/sites-available/

My own workaround within compose thus far has been:

services:
  volumes_source:
      image: tianon/true
      volumes:
          - ./configuration/nginx/sites:/etc/nginx/sites-available
          - ./src:/var/www/html

  php-nginx:
    image: richarvey/nginx-php-fpm
    ports:
      - "80:80"
      - "443:443"
    volumes_from:
      - volumes_source
When in the **root** of a project, if you create the `conf/nginx/nginx-site*.conf` If you were to add anything: ``` server { # configuration } ``` Typically the EOF is missing when copied into the container upon performing a `docker-compose up -d` this yield an nginx critical error. I found this after a while of hunting through `/etc/nginx/sites-available/` My own workaround within compose thus far has been: ``` services: volumes_source: image: tianon/true volumes: - ./configuration/nginx/sites:/etc/nginx/sites-available - ./src:/var/www/html php-nginx: image: richarvey/nginx-php-fpm ports: - "80:80" - "443:443" volumes_from: - volumes_source ```
richarvey commented 2017-02-16 09:18:52 +00:00 (Migrated from github.com)

Could you post the steps to recreate this issue please

Could you post the steps to recreate this issue please
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ric/nginx-php-fpm#112
No description provided.