updated docker information
This commit is contained in:
45
docker/dev/logging/loki-config.yml
Normal file
45
docker/dev/logging/loki-config.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
grpc_listen_port: 9095
|
||||
|
||||
ingester:
|
||||
lifecycler:
|
||||
address: 127.0.0.1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
replication_factor: 1
|
||||
chunk_idle_period: 5m
|
||||
chunk_target_size: 1048576
|
||||
chunk_retain_period: 1m
|
||||
max_transfer_retries: 0
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2020-10-15
|
||||
store: boltdb-shipper
|
||||
object_store: filesystem
|
||||
schema: v11
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
|
||||
storage_config:
|
||||
boltdb_shipper:
|
||||
active_index_directory: /loki/index
|
||||
cache_location: /loki/index_cache
|
||||
shared_store: filesystem
|
||||
filesystem:
|
||||
directory: /loki/chunks
|
||||
|
||||
compactor:
|
||||
working_directory: /loki/compactor
|
||||
shared_store: filesystem
|
||||
|
||||
ruler:
|
||||
storage:
|
||||
type: local
|
||||
local:
|
||||
directory: /loki/rules
|
||||
17
docker/dev/logging/promtail-config.yml
Normal file
17
docker/dev/logging/promtail-config.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
server:
|
||||
http_listen_port: 9080
|
||||
grpc_listen_port: 0
|
||||
|
||||
positions:
|
||||
filename: /var/log/promtail/positions.yaml
|
||||
|
||||
clients:
|
||||
- url: http://loki:3100/loki/api/v1/push
|
||||
|
||||
scrape_configs:
|
||||
- job_name: laravel_logs
|
||||
static_configs:
|
||||
- labels:
|
||||
app: fotospiel
|
||||
service: laravel
|
||||
__path__: /var/www/html/storage/logs/*.log
|
||||
36
docker/dev/php/Containerfile
Normal file
36
docker/dev/php/Containerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
FROM docker.io/library/php:8.3-cli
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install system dependencies and PHP extensions needed by the app
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
unzip \
|
||||
libzip-dev \
|
||||
libpng-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libfreetype6-dev \
|
||||
libicu-dev \
|
||||
libonig-dev \
|
||||
libsqlite3-dev \
|
||||
pkg-config; \
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg; \
|
||||
docker-php-ext-install -j"$(nproc)" \
|
||||
bcmath \
|
||||
intl \
|
||||
gd \
|
||||
pdo \
|
||||
pdo_mysql \
|
||||
pdo_sqlite \
|
||||
zip; \
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Provide Composer for dependency management
|
||||
COPY --from=docker.io/library/composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD ["php", "-v"]
|
||||
Reference in New Issue
Block a user