Skip to content
Snippets Groups Projects
Unverified Commit 293d2e45 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Removing nginx as it is not needed for local development.

parent 59728b9c
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,12 @@ services:
openccg:
build: .
nginx:
build:
dockerfile: nginx/Dockerfile
context: .
ports:
- "80:80"
depends_on:
- openccg
- "80:8080"
networks:
- external_network
networks:
external_network:
external:
name: ${DOCKER_NETWORK:-web-openccg_default}
FROM nginx:1.15.5-alpine
LABEL maintainer="Sebastian Höffner <shoeffner@tzi.de>"
LABEL description="nginx instance to serve OpenCCG and the OpenCCG.ebnf"
LABEL version="1.0"
EXPOSE 80
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY OpenCCG.ebnf /OpenCCG.ebnf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}
server {
listen 80;
location / {
proxy_pass http://openccg:8080/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /grammar {
alias /OpenCCG.ebnf;
add_header Content-Disposition 'inline; filename="OpenCCG.ebnf"';
default_type text/plain;
charset utf-8;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment