mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2025-07-23 05:11:41 +02:00
Fix errors. Add Symfony entrypoint.
This commit is contained in:
@@ -2,17 +2,20 @@ FROM nginx:1.19.6
|
||||
|
||||
LABEL maintainer="Vincent Composieux <vincent.composieux@gmail.com>"
|
||||
|
||||
RUN mkdir -p /etc/nginx/templates \
|
||||
mkdir -p /tmp/nginx
|
||||
RUN mkdir -p /etc/nginx/templates
|
||||
|
||||
COPY nginx.conf /etc/nginx/
|
||||
COPY templates/* /etc/nginx/templates/
|
||||
COPY html/index.html.template /tmp/nginx/
|
||||
|
||||
ARG NGINX_SYMFONY_SERVER_NAME
|
||||
ARG KIBANA_PORT
|
||||
RUN envsubst < /tmp/nginx/index.html.template > /usr/share/nginx/html/index.html; \
|
||||
rm -fR /tmp/nginx
|
||||
ENV APP_ENV=prod
|
||||
ENV APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
|
||||
ENV APP_DEBUG=1
|
||||
ARG INFLUXDB_PASSWORD
|
||||
ARG MYSQL_PASSWORD
|
||||
ENV INFLUXDB_URL=influxdb://symfony:${INFLUXDB_PASSWORD}@influxdb:8086/ClusterCockpit
|
||||
ENV DATABASE_URL=mysql://symfony:${MYSQL_PASSWORD}@db:3306/ClusterCockpit
|
||||
ENV CORS_ALLOW_ORIGIN=^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$
|
||||
|
||||
CMD ["nginx"]
|
||||
|
||||
|
@@ -22,7 +22,6 @@ http {
|
||||
gzip on;
|
||||
gzip_disable "msie6";
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
include /etc/nginx/sites-enabled/*;
|
||||
open_file_cache max=100;
|
||||
client_body_temp_path /tmp 1 2;
|
||||
client_body_buffer_size 256k;
|
||||
|
Reference in New Issue
Block a user