Skip to content

Commit

Permalink
Added Grafana, Fixed GPS via EXIF extention (#33)
Browse files Browse the repository at this point in the history
* Status Jan 11th

* Status Jan 12th, entrypoint is working

* Rework after testing

* added Grafana to docker-compose

* Added Grafana, Fixed EXIF extention

* Changes due to review
  • Loading branch information
phummelen authored Jan 19, 2024
1 parent 90f9637 commit 806e31e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
21 changes: 21 additions & 0 deletions deployment/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,27 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /en/ {
proxy_pass http://docs/;
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 /nl/ {
proxy_pass http://docs/;
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 /grafana/ {
proxy_pass http://grafana:3000/;
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 /phpmyadmin/ {
proxy_pass http://phpmyadmin:80/;
proxy_set_header Host $host;
Expand Down
3 changes: 2 additions & 1 deletion deployment/web-dev.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ RUN set -eux; \
mysqli \
opcache \
pdo_mysql \
zip
zip \
exif

# Get latest Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Expand Down
28 changes: 21 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
uid: 1000
context: ./
dockerfile: deployment/web-dev.dockerfile
image: ${REGISTRY_USER}/${APP_NAME}-web:${APP_VERSION}
image: ${REGISTRY_USER}/${APP_NAME}/web:${APP_VERSION}
container_name: ${APP_NAME}-web
restart: unless-stopped
environment:
Expand All @@ -32,11 +32,11 @@ services:
# build:
# context: ./docs
# dockerfile: deployment/docs.dockerfile
image: ${REGISTRY_USER}/${APP_NAME}-docs:${APP_VERSION}
container_name: ${APP_NAME}-docs
restart: unless-stopped
environment:
- ENVIRONMENT
image: ${REGISTRY_USER}/${APP_NAME}/docs:${APP_VERSION}
container_name: ${APP_NAME}-docs
restart: unless-stopped
environment:
- ENVIRONMENT
db:
image: mysql:8.0
container_name: ${APP_NAME}-db
Expand Down Expand Up @@ -71,11 +71,25 @@ services:
container_name: ${APP_NAME}-proxy
restart: unless-stopped
ports:
- "8080:80"
#- 8080:80
- 80:80
- 443:443
volumes:
- ./deployment/nginx.conf:/etc/nginx/nginx.conf:ro
- ./cert:/etc/nginx/cert
depends_on:
- web
grafana:
image: grafana/grafana-oss
container_name: grafana
restart: unless-stopped
environment:
- GF_SERVER_ROOT_URL=http://localhost/grafana #future usage
- GF_INSTALL_PLUGINS=grafana-clock-panel
ports:
- 3000:3000
volumes:
- ./data/grafana:/var/lib/grafana:rw

networks:
network:
Expand Down

0 comments on commit 806e31e

Please sign in to comment.