Initial OpenObserve Cloudron package
This commit is contained in:
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM cloudron/base:5.0.0
|
||||
|
||||
RUN mkdir -p /app/code /app/data /tmp/data
|
||||
|
||||
# Install OpenObserve binary
|
||||
RUN curl -L https://github.com/openobserve/openobserve/releases/download/v0.10.9/openobserve-v0.10.9-linux-amd64.tar.gz -o /tmp/openobserve.tar.gz \
|
||||
&& tar -xzf /tmp/openobserve.tar.gz -C /app/code \
|
||||
&& chmod +x /app/code/openobserve \
|
||||
&& rm /tmp/openobserve.tar.gz
|
||||
|
||||
# Copy configuration files
|
||||
COPY start.sh /app/code/start.sh
|
||||
COPY nginx.conf /etc/nginx/sites-available/default
|
||||
COPY logo.png /app/code/logo.png
|
||||
|
||||
# Set permissions
|
||||
RUN chmod +x /app/code/start.sh \
|
||||
&& chown -R cloudron:cloudron /app/code /app/data /tmp/data
|
||||
|
||||
# Initialize data directory structure
|
||||
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \
|
||||
&& chown -R cloudron:cloudron /tmp/data
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:5080/healthz || exit 1
|
||||
|
||||
EXPOSE 5080 5081
|
||||
|
||||
CMD [ "/app/code/start.sh" ]
|
Reference in New Issue
Block a user