Repository navigation
Expand file tree
/
Copy pathdocker-compose.override.yml.example
More file actions
65 lines (60 loc) · 2.1 KB
/
Copy pathdocker-compose.override.yml.example
File metadata and controls
65 lines (60 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Docker Compose Override for Local Development
#
# To use this file for local development:
# 1. Copy this file to docker-compose.override.yml:
# cp docker-compose.override.yml.example docker-compose.override.yml
#
# 2. Docker Compose will automatically use the override file
#
# This override will build the Monoscope image locally instead of pulling from GitHub Packages
version: '3.8'
services:
# Override monoscope service to build locally
monoscope:
# Comment out or remove the image line to build locally
image: ~
build:
context: .
dockerfile: Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
# Optional: Mount source code for development (requires rebuild on changes)
volumes:
- ./static:/opt/monoscope/static:ro
# Optional: Add development environment variables
environment:
- ENVIRONMENT=DEV
- LOG_LEVEL=debug
# Optional: Enable persistent storage for development (default is tmpfs)
# Uncomment the volumes section below to use persistent volumes instead of tmpfs.
# This is useful when you need data to survive container restarts during development.
#
# timescaledb:
# tmpfs: [] # Remove tmpfs to use persistent volume
# volumes:
# - timescale_data:/var/lib/postgresql/data
# Optional: MinIO for local S3-compatible storage (required for trace/metric ingestion)
# Uncomment to enable local object storage alongside the database.
# After enabling, set MINIO_ENDPOINT=http://minio:9000,
# MINIO_ACCESS_KEY, MINIO_SECRET_KEY, and MINIO_BUCKET in your .env file.
#
# minio:
# image: bitnami/minio:latest
# ports:
# - '9000:9000'
# - '9001:9001'
# environment:
# - MINIO_ROOT_USER=minioadmin
# - MINIO_ROOT_PASSWORD=minioadmin
# - MINIO_DEFAULT_BUCKETS=monoscope-dev
# healthcheck:
# test: ["CMD", "curl", "-fsS", "http://localhost:9000/minio/health/live"]
# interval: 5s
# timeout: 3s
# retries: 10
# networks:
# - monoscope-network
# Add persistent volume reference if using non-tmpfs storage above
# volumes:
# timescale_data:
# driver: local