logs-collector/docker-compose.yaml

39 lines
935 B
YAML
Raw Normal View History

version: "3"
# to set environment variables:
# create a .env file in the same directory as docker-compose.yaml
2023-08-30 15:26:53 +02:00
services:
logs_collector:
container_name: logs-collector
2023-08-30 15:26:53 +02:00
build:
context: .
args:
- VERSION=${VERSION}
- SRC_DIR=${SRC_DIR}
- SCRIPTS_DIR=${SCRIPTS_DIR}
- APP_DIR=${APP_DIR}
- DATA_DIR=${DATA_DIR}
- WEB_PORT=${WEB_PORT}
- USER_NAME=${USER_NAME}
- USER_GROUP=${USER_GROUP}
- APP_UID=${APP_UID}
- APP_GID=${APP_GID}
2023-08-30 15:26:53 +02:00
ports:
- "${WEB_HOST}:${WEB_PORT}:${WEB_PORT}"
2023-08-30 15:26:53 +02:00
volumes:
- type: volume
source: logs_collector_data
target: ${APP_DIR}/data
2023-08-30 15:26:53 +02:00
env_file:
- ./.env
healthcheck:
test: ["CMD", "curl", "-f", "http://${WEB_HOST}:${WEB_PORT}/${HEALTHCHECK_URL}"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
logs_collector_data: